[GiNaC-list] Given a formal iterated derivative (GiNaC::fderivative), what actually is it?
ricardo.buring at gmail.com
Thu Apr 7 17:30:52 CEST 2016
Using GiNaC one can define a symbolic/formal function f of two variables as
Formal derivatives can be computed by defining symbols x, y and calculating
f(x,y).diff(x, 3).diff(y, 2)
which is printed as
This is fantastic. Now, I would like to obtain the list [0, 0, 0, 1, 1]
from the above expression.
Checking the printing code GiNaC::fderivative::do_print, this is stored in
However, it's protected, and it doesn't seem to be accessible by any
method. My attempt
fderivative fder = ex_to<fderivative>(e);
for (auto x : fder.parameter_set)
cout << x << ", ";
therefore fails. Could an accessor or some such be implemented so this
(basic) operation becomes possible?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the GiNaC-list