Sorry... I found that this was already answered and works through a lambda function trick
On 11 mar, 16:24, Nicolas <nicolas.fresseng...@gmail.com> wrote: > Strange plot behavior : I would like to just plot a Bessel function > Am I doing anything wrong ? > (I tried to plot it through an iterator and a list plot... works ok > but unhandy with sagetex) > > sage: plot(bessel_J(1,x),(x,0,10)) > --------------------------------------------------------------------------- > TypeError Traceback (most recent call > last) > > /usr/local/src/sage-4.3.2/<ipython console> in <module>() > > /usr/local/src/sage-4.3.2/local/lib/python2.6/site-packages/sage/ > functions/special.pyc in bessel_J(nu, z, algorithm, prec) > 771 C = ComplexField(prec) > 772 nu = C(nu) > --> 773 z = C(z) > 774 K = C > 775 if nu == 0: > > /usr/local/src/sage-4.3.2/local/lib/python2.6/site-packages/sage/rings/ > complex_field.pyc in __call__(self, x, im) > 265 if im is not None: > 266 x = x, im > --> 267 return Parent.__call__(self, x) > 268 > 269 def _element_constructor_(self, x): > > /usr/local/src/sage-4.3.2/local/lib/python2.6/site-packages/sage/ > structure/parent.so in sage.structure.parent.Parent.__call__ (sage/ > structure/parent.c:6206)() > > /usr/local/src/sage-4.3.2/local/lib/python2.6/site-packages/sage/ > structure/coerce_maps.so in > sage.structure.coerce_maps.DefaultConvertMap_unique._call_ (sage/ > structure/coerce_maps.c:3142)() > > /usr/local/src/sage-4.3.2/local/lib/python2.6/site-packages/sage/ > structure/coerce_maps.so in > sage.structure.coerce_maps.DefaultConvertMap_unique._call_ (sage/ > structure/coerce_maps.c:3040)() > > /usr/local/src/sage-4.3.2/local/lib/python2.6/site-packages/sage/rings/ > complex_field.pyc in _element_constructor_(self, x) > 289 > 290 try: > --> 291 return x._complex_mpfr_field_( self ) > 292 except AttributeError: > 293 pass > > /usr/local/src/sage-4.3.2/local/lib/python2.6/site-packages/sage/ > symbolic/expression.so in > sage.symbolic.expression.Expression._complex_mpfr_field_ (sage/ > symbolic/expression.cpp:4981)() > > /usr/local/src/sage-4.3.2/local/lib/python2.6/site-packages/sage/ > symbolic/expression.so in > sage.symbolic.expression.Expression._eval_self (sage/symbolic/ > expression.cpp:4469)() > > TypeError: Cannot evaluate symbolic expression to a numeric value. > sage: -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org