
12 Jul
2002
12 Jul
'02
12:45 p.m.
Enea Zaffanella wrote: [...]
Integer c = c1.coefficient(Variable(0)); long c_long = c.get_si();
Actually, there is no need to copy the coefficient before converting it (the above code was just an explanation). For efficiency, use an Integer& or write something like:
long c_long = c1.coefficient(Variable(0)).get_si();
Ciao, Enea.