21 Jan
2013
21 Jan
'13
12:12 a.m.
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