Extracting a numeric from an ex

Christian Bauer cbauer at student.physik.uni-mainz.de
Thu Dec 7 00:21:59 CET 2000


On Wed, Dec 06, 2000 at 02:39:29PM -0200, Eduardo M Kalinowski wrote:
>     I would find it extremely useful if it was possible to get a numeric
> representing the ex's contents

Given an 'ex e':

  numeric n;
  if (is_ex_of_type(e, numeric))
    n = ex_to_numeric(e);


  / Coding on PowerPC and proud of it
\/ http://www.uni-mainz.de/~bauec002/
To UNSUBSCRIBE, email to ginac-list at ginac.de with a subject of "unsubscribe".

More information about the GiNaC-list mailing list