Hi, I am using GiNac within a Finite Element Library Feel++. I would to define piecewise function in GiNaC. Is this possible with latest version? Thank for any hints Best regard C. Trophime Christophe TROPHIME Research Engineer CNRS - LNCMI 25, rue des Martyrs BP 166 38042 GRENOBLE Cedex 9 FRANCE Tel : +33 (0)4 76 88 90 02 Fax : +33 (0) 4 76 88 10 01 Office U 19 M@il : christophe.trophime@lncmi.cnrs.fr
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/
participants (2)
-
Christophe Trophime
-
Vladimir V. Kisil