Vectors in Visual Python
SOrry if this message is a little confused, it most probably reflects the state of the author! I have made a small program that plots the orbit of a planet in visual python using visual.vector for all values. If i run the program it is clear that the orbit is non-keplerian as the planets gradually moves away from the sun. I am pretty sure the orbit should be keplerian so i guess there must be some source of error in the program. I am using "from __future__ import division" and the initial conditions I have are from NASA's horizons system, all values are accuracte to more than 10 decimal places. I was wondering if there was a way to specify the type of number used by visual.vector, for example, when using an array it is possible to specify the type as float64. If visual.vector was using a smaller amount of memory to store the number could this be the source of the error I am finding? If not what else could be the culprit? I have used a 4th order RK method which I have previously produced Keplerian orbits with. I hope I have made some sense here and look forward to any input Many Thanks Ben -- http://mail.python.org/mailman/listinfo/python-list
Re: Vectors in Visual Python
Thanks for all your help everyone, if only it had addressed what I had asked I may have actually learned something about Python!! If anything was addressed to my problem then it has completely passed me by as most points were clearly made by a computer scientist and I am not one of those in the slightest. My experience of using any type of programming language is limited to the little we are taught in my non-computing subject and hence I have no idea what the below is all about!! In future example code may be more useful to help newbies like me :) "That ``speciufication'' (sic) is no more ``a "declaration"'' than any other parameter you can pass to a constructor (or any other factory callable)." -- http://mail.python.org/mailman/listinfo/python-list
anit alias and vpython
I have created a simulation of the solar system which is graphically represented using vpython. I was wondering in there is some way to make the orbit paths look better (I was thinking of anti aliasing the lines). I havent been able to find any information on this so I assume its not supported but just wanted to check, or see if anyone had suggestions on how to make the graphics look better Many Thanks -- http://mail.python.org/mailman/listinfo/python-list
odeint function in SciPy
I was wondering what numerical method the odeint function is based on. I have checked the documentation but couldnt find anything. I would be very grateful if someone could answer this question for me, I'm not looking for a heavy mathematical answer! Cheers! Ben -- http://mail.python.org/mailman/listinfo/python-list
Re: odeint function in SciPy
Thanks for your help! I don't suppose you happen to know what order this method is? -- http://mail.python.org/mailman/listinfo/python-list
