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
Hi
How can I define a homomorphism from a relative number field
to some other field L which sends (all) the generators to
corresponding specified elements?
Example:
F_pol = x^2-x-1
F = NumberField(F_pol, 'lam')
K_pol = x^2 + 4
K = F.extension(K_pol, 'e')
L = QQbar
lam_im = QQbar(F_pol.roots()[1
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.sa
Here the act Log
Traceback (most recent call last):
File
"/Applications/Sage-6.3.app/Contents/Resources/sage/src/bin/sage-notebook",
line 34, in
notebook()
File "lazy_import.pyx", line 358, in
sage.misc.lazy_import.LazyImport.__call__
(build/cythonized/sage/misc/lazy_import.c:3000)