[GiNaC-list] Re: GiNaC error-message

Chris Dams Chris.Dams at mi.infn.it
Wed Oct 11 13:11:11 CEST 2006



Dear Martijn,

On Tue, 10 Oct 2006, Martijn Frijlink wrote:

> I am using GiNaC 1.3.3 and while running the executable of the attached
> file blockrec.cc I got the following message :
> 
> $ ./blockrec 11
> Discrete frequencies 0 ... 10 will be used
>
> Internal error: statement in file real/conv/cl_R_to_double.cc, line 55
> has been reached!!
> Please send the authors of the program a description how you produced
> this error!

The problem is the line

	CosC[i] = ex_to<numeric>(Lsigma*a_m).to_double();

The expression Lsigma*a_m is not a numeric but e.g. something like 
6*sqrt(3)*Pi^(-1). To evaluate this into a numeric you have to use 
evalf.

Best wishes,
Chris



More information about the GiNaC-list mailing list