- added ex::to_rational() to convert general expression to rational expression
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Thu, 6 Apr 2000 19:58:15 +0000 (19:58 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Thu, 6 Apr 2000 19:58:15 +0000 (19:58 +0000)
commite3830d7f64627be5f6f4f265c0e8effb653be6b9
tree3ea76b1061fccd37934bba810c1b167e40647421
parentb7e47bd8c2593da1ef990f8c09c4d5ee321955f5
- added ex::to_rational() to convert general expression to rational expression
  by replacing all non-rational parts with temporary symbols, e.g.:
    ex a = pow(sin(x), 2) - pow(cos(x), 2);
    ex b = sin(x) + cos(x);
    ex d;
    lst l;
    divide(a.to_rational(l), b.to_rational(l), d);
    cout << d.subs(l) << endl;
  will print "sin(x)-cos(x)"
ginac/basic.h
ginac/ex.h
ginac/expairseq.cpp
ginac/expairseq.h
ginac/normal.cpp
ginac/normal.h
ginac/numeric.h
ginac/power.h
ginac/symbol.h