|
⇤ ← Revision 1 as of 2008-03-01 15:05:59
Size: 762
Comment:
|
← Revision 2 as of 2008-11-14 13:42:01 ⇥
Size: 762
Comment: converted to 1.6 markup
|
| No differences found! | |
Create manipulate functionality for notebook inspired by Traits and Mathematica
I implemented something last night. See http://trac.sagemath.org/sage_trac/attachment/ticket/1322/manipulate-take3.patch which works like this:
@manipulate
def myfactor(n):
print jsmath(factor(n))
@manipulate
def polys(m):
R = QQ['x']
f = R.random_element(m)
print "f = ", jsmath(f)
print "real roots = ", f.real_roots()
show(plot(f))
@manipulate
def ellcurve(label):
E = EllipticCurve(label)
show(E)
show("E conductor = %s"%E.conductor())
show(E.q_eigenform(7))
show(plot(E))
@manipulate
def pl(n):
var('x,y')
show(x^n-y^n)
show(plot3d(x^n-y^n, (x,-2,2), (y,-2,2)))