[sage-support] Re: Symbolic derivative question

2009-10-09 Thread kcrisman
Dear Burcin, Tim, Jason, et al. - and sage-support: This is a new question related to the previous discussion, though it's not quite the same. sage: u = function('u') sage: h,x = var('h,x') sage: p = diff(u(x+h),h,1) Okay, so far so good, and in the syntax note that CLEARLY h is the variable of

[sage-support] Re: Symbolic derivative question

2009-09-29 Thread Nils Bruin
This thread now contains some examples of how different computer algebra systems handle the chain rule. The following might help in sage <-> maxima communication: By default, maxima leaves an expression: "diff( f(g(a,b,c),u,v), a)" untouched. But maxima can in fact represent the result from appl

[sage-support] Re: Symbolic derivative question

2009-09-29 Thread Robert Bradshaw
On Sep 28, 2009, at 11:30 AM, Tim Lahey wrote: > On Sep 28, 2009, at 2:21 PM, kcrisman wrote: > >> >> Dear support (and/or Burcin), >> >> How does Sage/Pynac support derivatives evaluated at a point (or does >> it)? E.g., >> >> sage: f = function('f',t) >> sage: h = f.diff(t,1) >> sage: h.subs(t

[sage-support] Re: Symbolic derivative question

2009-09-28 Thread Tim Lahey
On Sep 29, 2009, at 1:44 AM, Jason Grout wrote: > > Tim Lahey wrote: >> >> >> >> Based upon what I recall about the D notation, that's the derivative >> of f(t) evaluated at t = 0. The f(0) tells where it's evaluated at >> and >> the D[0] indicates that it's the derivative with respect to the

[sage-support] Re: Symbolic derivative question

2009-09-28 Thread Jason Grout
Tim Lahey wrote: > > On Sep 28, 2009, at 2:21 PM, kcrisman wrote: > >> Dear support (and/or Burcin), >> >> How does Sage/Pynac support derivatives evaluated at a point (or does >> it)? E.g., >> >> sage: f = function('f',t) >> sage: h = f.diff(t,1) >> sage: h.subs(t=0) >> D[0](f)(0) >> >> But is

[sage-support] Re: Symbolic derivative question

2009-09-28 Thread Nils Bruin
On Sep 28, 3:09 pm, Tim Lahey wrote: > The D notation is used in Maple as an option, but almost always allows > conversion to the standard notation. OK, this thread should probably go to sage-devel or elsewhere, but I don't know how to do that. Maple actually falls back on exactly the same D no

[sage-support] Re: Symbolic derivative question

2009-09-28 Thread Tim Lahey
On Sep 28, 2009, at 5:37 PM, Nils Bruin wrote: > Would you have suggestions for printing derivatives using partials? I > think the main problem here is that one needs to "name" the formal > variables, whereas mathematical notation otherwise identifies > arguments by position. > > For instance, s

[sage-support] Re: Symbolic derivative question

2009-09-28 Thread Nils Bruin
On Sep 28, 11:30 am, Tim Lahey wrote: > > sage: f = function('f',t) > > sage: h = f.diff(t,1) > > sage: h.subs(t=0) > > D[0](f)(0) > > Based upon what I recall about the D notation, that's the derivative > of f(t) evaluated at t = 0. The f(0) tells where it's evaluated at and > the D[0] indicates

[sage-support] Re: Symbolic derivative question

2009-09-28 Thread kcrisman
On Sep 28, 2:30 pm, Tim Lahey wrote: > On Sep 28, 2009, at 2:21 PM, kcrisman wrote: > > > > > Dear support (and/or Burcin), > > > How does Sage/Pynac support derivatives evaluated at a point (or does > > it)?  E.g., > > > sage: f = function('f',t) > > sage: h = f.diff(t,1) > > sage: h.subs(t=0)

[sage-support] Re: Symbolic derivative question

2009-09-28 Thread Tim Lahey
On Sep 28, 2009, at 2:21 PM, kcrisman wrote: > > Dear support (and/or Burcin), > > How does Sage/Pynac support derivatives evaluated at a point (or does > it)? E.g., > > sage: f = function('f',t) > sage: h = f.diff(t,1) > sage: h.subs(t=0) > D[0](f)(0) > > But is this what we are looking for?