I had a look at NestList in Mathematica and there is nothing out of
the box to compute
  [x, f(x), f(f(x)), f(f(f(x))), ...]
in Python. But still you can do the following one line program

sage: f(x) = 3.9*x*(1-x)
sage: orbit = [0.3]
sage: for _ in range(10): orbit.append(f(orbit[-1]))
sage: print orbit
[0.300000000000000,
 0.819000000000000,
 0.578132100000000,
 0.951191962303401,
 0.181060671295945,
 0.578283047962646,
 0.951099881166544,
 0.181384699124966,
 0.579088731188415,
 0.950605393136126,
 0.183123640738886]

Vincent

2014-09-18 6:58 UTC+02:00, s m h <[email protected]>:
> Thank you so much, I do consider your suggestions.
> Sorry for inconvenience...
>
>
>
> در پنجشنبه 18 سپتامبر 2014، ساعت 1:31:37 (UTC+4:30)، vdelecroix نوشته:
>>
>> The sage-devel list is intended for development and not for questions
>> related to Sage usage. For that purpose there are:
>>  - the website ask.sagemath.org
>>  - the googlegroups sage-support (to whom I transfered this e-mail)
>> Please use them for your future usage.
>>
>> You might have a look at
>>
>> http://ask.sagemath.org/question/10013/solving-an-ode-system-with-initial-conditions/
>>
>>
>> But anyway it always better to describe better what you want to do.
>>
>> Vincent
>>
>> 2014-09-17 19:59 UTC+02:00, s m h <[email protected] <javascript:>>:
>> >
>> > Dear Sage-devel
>> >
>> > I want to know how I should introduce the system of equations and the
>> > corresponding vector of initial values to Sage a priori to solve them
>> with
>> > some functions like sage.calculus.desolvers.desolve_odeint or
>> > sage.calculus.desolvers.desolve_system
>> > .
>> >
>> > If it helps, I want to translate my Mathematica code (for solving an ODE
>> >
>> > system) to a Sage code, and for now I'm looking for something like
>> > NestList[] in Mathematica.
>> >
>> > Yours truly,
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to