[GiNaC-list] Min/Max functions

Vladimir V. Kisil kisilv at maths.leeds.ac.uk
Wed May 24 17:26:37 CEST 2017

	Dear Lukas,

>>>>> On Wed, 24 May 2017 16:30:58 +0200, Lukas Barth <lists at tinloaf.de> said:

    LB> Hi everyone, I'm currently evaluating whether to use GiNaC for
    LB> my project where I basically need to differentiate functions
    LB> containing max(…,…), some tanh(…), and some other
    LB> atrocities. Now, from the documentation it looks like GiNaC does
    LB> not implement max() or min().

    Please note that you can

    1. Either use the implemented function abs():


    2. Or define your own functions max(), min() using GiNaC source
  (tutorial "6.2 Symbolic functions")

  Best wishes,
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/

More information about the GiNaC-list mailing list