On Tuesday, May 15, 2012 2:36:34 AM UTC-4, Keshav Kini wrote:
>
> John H Palmieri <jhpalmier...@gmail.com> writes: 
> > This works for me: 
> > 
> >     sage: numerical_integral(x*cos(x^3), 0, 0.5) 
> >     (0.1247560409610376, 1.3850702913602309e-15) 
>
> Interesting... 
>
>
>     sage: numerical_integral(x*cos(x^3), 0, 0.5) 
>     (0.1247560409610376, 1.3850702913602309e-15) 
>     sage: (x*cos(x^3))(0) 
>     
> /opt/sage-5.0.rc1/local/lib/python2.7/site-packages/IPython/iplib.py:2260: 
> DeprecationWarning: Substitution using function-call syntax and unnamed 
> arguments is deprecated and will be removed from a future release of Sage; 
> you can use named arguments instead, like EXPR(x=..., y=...) 
>       exec code_obj in self.user_global_ns, self.user_ns 
>     0 
>
> Why does numerical_integral() not trigger the deprecation warning? 
>

The same reason that plot and integral don't, because we're not "calling" 
them in the same way.  It makes sense to integrate symbolic expressions and 
to plot them.  It's true that we need to unify our integration command 
syntax (see http://trac.sagemath.org/sage_trac/ticket/7763).

- kcrisman 

-- 
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

Reply via email to