sympy

Poul Riis priisdk at gmail.com
Thu Mar 31 02:51:06 EDT 2016


Den torsdag den 31. marts 2016 kl. 06.49.34 UTC+2 skrev Gregory Ewing:
> Steven D'Aprano wrote:
> > On Thu, 31 Mar 2016 02:23 am, Poul Riis wrote:
> > 
> >>What I intend to do is to let sympy find the derivative of some
> >>welldefined function and next define the foundation derivative as a normal
> >>function
> > 
> > py> ftext.evalf(subs={x:3})
> > -0.0600000000000000
> 
> Given all that, it looks like you want
> 
> def f(t):
>    return ftext.evalf(subs={x:t})
> 
> -- 
> Greg

Oh, yes, that works! Thank you!

Poul Riis



More information about the Python-list mailing list