[GiNaC-list] implicit differentiation

Vladimir V. Kisil kisilv at maths.leeds.ac.uk
Wed Jun 2 16:08:46 CEST 2010


>>>>> On Wed, 02 Jun 2010 15:16:18 +0200, Felipe Bordeu <felipe.bordeu at ec-nantes.fr> said:
    FB> now my problem is that I what to make the substitution of A to
    FB> something else, like x^2:

    FB> cout << "dA/dx with A=x^2 is : " << dAdx.subs(A==pow(x,2)) <<
    FB> endl; (I know that the previous line is not correct)

    FB> to get something like : "2*x"

	I think, you need to rewrite method subs() for your class
  accordingly. 

  Best wishes,
  Vladimir  
-- 
Vladimir V. Kisil     email: kisilv at maths.leeds.ac.uk
--                      www: http://www.maths.leeds.ac.uk/~kisilv/


More information about the GiNaC-list mailing list