On Thu, 12 Mar 2015 08:50:22 +0100 (CET), Christophe Trophime <christophe.trophime@lncmi.cnrs.fr> said:
CT> Hi, I am using GiNac within a Finite Element Library Feel++. CT> I would to define piecewise function in GiNaC. Is this possible CT> with latest version? It depends from the set of properties, which you expect from such a function. The GiNaC::function class is rather flexible. If you only need values of the function to be evaluated by piecewise rules, then it is rather easy to achieve through function::eval() and function::evalf() methods. -- Vladimir V. Kisil http://www.maths.leeds.ac.uk/~kisilv/ Book: Geometry of Mobius Transformations http://goo.gl/EaG2Vu Software: Geometry of cycles http://moebinv.sourceforge.net/