Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lost
    New Member
    • Sep 2006
    • 1

    #1

    Help

    Hey I need help. I am trying to write a program to display 6 spheres using a while loop and then I have to make another loop to estimate the charge at a specific observation location. This is what I have so far and it does not work. Please help.
    from visual import *
    from __future__ import division

    ## constants
    L = 2
    N = 6
    Q = 3e-8
    oofpez = 9e9
    scalefactor = 1.0
    deltax = L/N
    print deltax
    deltaQ = Q/N

    ## initial values
    x = 1/6

    ## loop 1
    while x < L/2:
    sphere(pos=(x+d eltax,0,0))





    print sphere

    ## loop
Working...