From: Stavros M. <mac...@gm...> - 2022-12-11 23:04:38
|
Maxima distinguishes between the "noun" (declarative) and the "verb" (imperative) form of several operators: diff, integrate, limit, .... See the manual: https://maxima.sourceforge.io/docs/manual/maxima_30.html op( '( diff(f(x),x) ) ) is the verb form but op( diff(f(x),x) ) is the noun form. Take a look at the documentation for nounify and verbify to convert between the two. In many cases (but not diff), the two forms print the same. -s On Sun, Dec 11, 2022, 15:12 Eduardo Ochs <edu...@gm...> wrote: > Thanks! That solves some of my doubts... > But what should I use instead of funmake to make > > 'diff(f, x); > > and > > funmake('diff, [f, x]); > > yield identical results? > Thanks in advance! > E. > > On Sun, 11 Dec 2022 at 16:19, Richard Fateman <fa...@gm...> wrote: > > > > diff is an alias for the operation derivative. > > ?print(diff(f(x),x)) shows the internal representation. > > > > > > On Sun, Dec 11, 2022 at 10:53 AM Eduardo Ochs <edu...@gm...> > wrote: > >> > >> Hi list, > >> > >> what happens exactly when we run this? > >> > >> 'diff(f, x); > >> > >> As far as I know diff(f, x) - without the ' - is equivalent to: > >> > >> apply('diff, [f, x]); > >> > >> but > >> > >> op('diff(f, x)); > >> > >> returns "derivative", and I don't know what and where are the > >> functions that convert 'diff to 'derivative... > >> > >> Thanks in advance! > >> Eduardo Ochs > >> http://angg.twu.net/eev-maxima.html > >> > >> > >> _______________________________________________ > >> Maxima-discuss mailing list > >> Max...@li... > >> https://lists.sourceforge.net/lists/listinfo/maxima-discuss > > > _______________________________________________ > Maxima-discuss mailing list > Max...@li... > https://lists.sourceforge.net/lists/listinfo/maxima-discuss > |