Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Gregory Ewing Newsgroups: comp.lang.python Subject: Re: sympy Date: Thu, 31 Mar 2016 17:49:14 +1300 Lines: 17 Message-ID: References: <733f5f0d-9b4e-4023-897b-e1f2730c39cb@googlegroups.com> <56fbcd01$0$1599$c3e8da3$5496439d@news.astraweb.com> <99b7cf43-50ff-4de7-8de0-e324658682bf@googlegroups.com> <56fbf7e7$0$1591$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 8M2HrkpnBcGYuIhmAEOpUQCSdhzB8l4p+FkwEuwdK5gfgKNeGG Cancel-Lock: sha1:kKpjWFrPBdC5KX15gpYpErnvBJ8= User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711) X-Accept-Language: en-us, en In-Reply-To: <56fbf7e7$0$1591$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com comp.lang.python:106123 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