[GiNaC-devel] Expression comparison
jensv at nikhef.nl
Mon Sep 29 16:02:42 CEST 2008
Peter Grobarcik schrieb:
> 1) it is OK to use '==' and '!=' operators with expressions.
> 2) be careful with < <= > >= since they are for internal usage and do
> not give you
> the comparison of the value of the expression.
Well, yes and no. They are also for external use if you need to sort
your expressions (for example when putting them in a STL::set). But if
you want to compare the value of an expression then you have to make
sure the expression is a number (evalf is your friend).
More information about the GiNaC-devel