Re: [Tutor] Problems using odeint

2014-01-14 Thread eryksun
On Tue, Jan 14, 2014 at 1:40 PM, Grace Roberts wrote: > > -For certain initial conditions the programme displays impossible orbits, > showing the satellite making immediate sharp turns or jumping up and down in > velocity. The exact same code can also end up displaying different graphs > when run

Re: [Tutor] Problems using odeint

2014-01-14 Thread Steven D'Aprano
On Tue, Jan 14, 2014 at 06:40:03PM +, Grace Roberts wrote: [...] > I've attached a quick print-screen of the code. I've managed to have a look at the screenshot, there are no obvious problems, but I'm not a Scipy expert. If you do get an answer from a Scipy mailing list, I would really appre

Re: [Tutor] Problems using odeint

2014-01-14 Thread Danny Yoo
Hi Grace, I see that you're asking about the behavior of scipy.integrate.odeint(): http://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.odeint.html#scipy.integrate.odeint Unfortunately this might be too domain specific of a question for folks here at Tutor. I don't see anyth

Re: [Tutor] Problems using odeint

2014-01-14 Thread Steven D'Aprano
Hi Grace, and welcome, My reply is interleaved with your comments. On Tue, Jan 14, 2014 at 06:40:03PM +, Grace Roberts wrote: > Hi, > I'm a python beginner, currently using scipy's 'odeint' to compute to > a set of ODEs (obtained by splitting Newton's law of gravity > ma=-Gm1m2r/r^3 in two

Re: [Tutor] Problems using odeint

2014-01-14 Thread Joel Goldstick
On Tue, Jan 14, 2014 at 1:40 PM, Grace Roberts wrote: > Hi, > > I'm a python beginner, currently using scipy's 'odeint' to compute to a set > of ODEs (obtained by splitting Newton's law of gravity ma=-Gm1m2r/r^3 in two > ordinary differentials). The idea is that I'm modelling the orbit of a > sate

Re: [Tutor] iPython notebook In [*]: numbering

2014-01-14 Thread eryksun
On Tue, Jan 14, 2014 at 3:22 AM, Krischu wrote: > When I started I had In [0]:, In[1] etc. > > Now the notebook starts with In [2]:, In [3]: then In [9]: > > Yesterday before storing and leaving the notebook I suddenly had all In[]'s > marked like In [*]: > > Is there a method behind this? Can one

Re: [Tutor] Interactive escape sequences

2014-01-14 Thread Steven D'Aprano
On Tue, Jan 14, 2014 at 02:42:07AM -0500, Christian Alexander wrote: > Hello Tutorians, > > Why does the interactive prompt not recognize escape sequences in strings? > It only works correctly if I use the print function in python 3. > > >>> "Hello\nWorld" > "Hello\nWorld" I'm afraid that you a

Re: [Tutor] Interactive escape sequences

2014-01-14 Thread eryksun
On Tue, Jan 14, 2014 at 2:42 AM, Christian Alexander wrote: > > Why does the interactive prompt not recognize escape sequences in strings? > It only works correctly if I use the print function in python 3. > "Hello\nWorld" > "Hello\nWorld" Let's manually compile the following source string:

Re: [Tutor] Interactive escape sequences

2014-01-14 Thread Peter Otten
Christian Alexander wrote: > Hello Tutorians, > > Why does the interactive prompt not recognize escape sequences in strings? > It only works correctly if I use the print function in python 3. > "Hello\nWorld" > "Hello\nWorld" The way python shows objects in the interactive interpreter has

Re: [Tutor] Interactive escape sequences

2014-01-14 Thread Dave Angel
Alan Gauld Wrote in message: > On 14/01/14 07:42, Christian Alexander wrote: > >> Why does the interactive prompt not recognize escape sequences in >> strings? It only works correctly if I use the print function in python 3. >> >> >>> "Hello\nWorld" >> "Hello\nWorld" > > That depends on how y

Re: [Tutor] Interactive escape sequences

2014-01-14 Thread Alan Gauld
On 14/01/14 07:42, Christian Alexander wrote: Why does the interactive prompt not recognize escape sequences in strings? It only works correctly if I use the print function in python 3. >>> "Hello\nWorld" "Hello\nWorld" That depends on how you define "correctly"... When you evaluate an exp

[Tutor] iPython notebook In [*]: numbering

2014-01-14 Thread Krischu
Hi, I'm new to python and ipython. After the first steps I did I found that the numbering scheme in the Webapp (notebook) is kind of unpredicatble. When I started I had In [0]:, In[1] etc. Now the notebook starts with In [2]:, In [3]: then In [9]: Yesterday before storing and leaving the noteb

[Tutor] Interactive escape sequences

2014-01-14 Thread Christian Alexander
Hello Tutorians, Why does the interactive prompt not recognize escape sequences in strings? It only works correctly if I use the print function in python 3. >>> "Hello\nWorld" "Hello\nWorld" -- Regards, Christian Alexander ___ Tutor maillist - Tut