[GiNaC-list] converting expressions to double
jens.vollinga at googlemail.com
Fri Mar 2 21:11:48 CET 2012
could you run your code with an added extra line like the following:
ex = ex.subs(lst(x == _x, y == _y, z == _z, u == _u));
ex = ex.evalf();
std::cout << tree << ex << std::endl; /* NEW NEW NEW */
numeric tmp = ex_to<numeric>(ex);
and report about the result? That would help pin down the problem.
On 02.03.2012 15:41, Tomasz I. Rudny wrote:
> Thanks for quick reply. I am afraid this is not the case. My dbgprint()
> of my expression looks like this (many iterations given here):
> Any suggestions?
> Kind Regards,
> W dniu 02.03.2012 12:07, Vladimir V. Kisil pisze:
>> Hi, Tomasz,
>> One of the common reasons for such problem is that your
>> expression still contains some variables. Make a debug print of it and
>> check if it is the case.
>> Good luck!
> GiNaC-list mailing list
> GiNaC-list at ginac.de
More information about the GiNaC-list