[PURRS-devel] Re: CoStLy 0.3

Markus Neher markus.neher at math.uni-karlsruhe.de
Wed Dec 11 09:19:47 CET 2002


Dear Roberto,

> do you mean that `Complex.h' is part of the GCC 2.95
> distribution?  If so it was a non-standard feature that has been removed.

Exactly.

> Maybe the solution is simply to
> 
> 1) #include <complex> in the appropriate CoStLy sources; and
> 2) use std::complex<double> instead of Complex.

That has been implemented in cinterval.h. You can use the two attached 
patches to make the changes.

>> Do you have a priori information on the type of exponents that occur 
>> in your computations? For example, if you knew that only integer 
>> exponents occurred then you could replace all calls of pow(Z,P) (Z,P: 
>> cintervals) by calls of power(Z,n) (Z: cinterval; n:integer).
> 
> No, we do not have this knowledge a priori.  Of course we can test the
> type of the exponent at run-time and then invoke the appropriate function.

At the moment, we do not plan to change the  pow  function.

Regards,

Ingo and Markus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_cinterval_h
Type: application/x-java-applet
Size: 220 bytes
Desc: not available
URL: <http://www.cs.unipr.it/pipermail/purrs-devel/attachments/20021211/6767f3f8/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_cinterval_cpp
Type: application/x-java-applet
Size: 45 bytes
Desc: not available
URL: <http://www.cs.unipr.it/pipermail/purrs-devel/attachments/20021211/6767f3f8/attachment-0001.bin>


More information about the PURRS-devel mailing list