I am trying to reproduce Jason's Gaussian Quadrature interact
http://wiki.sagemath.org/interact/calculus#Gaussian_.28Legendre.29_quadrature
When I copy and paste it into a single cell I get:
<error>
NameError Traceback (most recent call last)
/tmp/tmpI94uOV/<string> in <module>()
NameError: name 't_roots' is not defined
</error>
In a 5.0 beta notebook (test.sagenb.org) I get:
<error>
Traceback (most recent call last): # 'Laguerre': {'w': e**(-x),
'xmin': 0, 'xmax': numpy.inf, 'func': l_roots}, File "", line 1, in
<module> File "/tmp/tmpcAT0cy/___code___.py", line 12, in <module>
'Chebyshev': {'w': _sage_const_1 /sqrt(_sage_const_1 -x**_sage_const_2
), 'xmin': -_sage_const_1 , 'xmax': _sage_const_1 , 'func': t_roots},
NameError: name 't_roots' is not defined
</error>
In a 4.8 notebook (my Ubuntu box) I get:
<error>
Traceback (most recent call last): # 'Laguerre': {'w': e**(-x),
'xmin': 0, 'xmax': numpy.inf, 'func': l_roots}, File "", line 1, in
<module> File "/tmp/tmpbrcKtA/___code___.py", line 12, in <module>
'Chebyshev': {'w': _sage_const_1 /sqrt(_sage_const_1 -x**_sage_const_2
), 'xmin': -_sage_const_1 , 'xmax': _sage_const_1 , 'func': t_roots},
NameError: name 't_roots' is not defined
</error>
Any suggestions?
Thanks.
-Bruce
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org