[GiNaC-list] Creating a number of FUNCTION_1P

Dale Lukas Peterson hazelnusse at gmail.com
Mon Jan 21 00:12:02 CET 2013


I am trying to declare N GiNaC 1 parameter functions
(DECLARE_FUNCTION_1P), each of which represents a different function
of the same single parameter (in my case, this parameter represents
time).  My primary motivation for doing this is to be able to easily
create a bunch of symbol-like objects that all depend on time so that
I can trust that the chain rule will work properly when
differentiating with respect to this single parameter.

I think this has come up before, but I haven't seen a way to declare a
vector or list of these functions without N explicit statements to
DECLARE_FUNCTION_1P.  Is there a simple way to do this in GiNaC?

Thanks,
Luke


More information about the GiNaC-list mailing list