[GiNaC-list] open interval class with GiNaC's term evaluation engine
Ulrich Loup
loup at cs.rwth-aachen.de
Mon Sep 27 16:28:03 CEST 2010
Hi,
I try to implement a class for open intervals with interval arithmetic. I
followed the instructions written in the GiNaC tutorial (6.5)
and also used the implementation of "numeric" etc. as example code in order to
get a clue of implementing the operators for my interval class.
My goal is to get the class working with GiNaC's term evaluation engine and in
particular, allow for polynomials with interval coefficients, which are
automatically simplified by the use of the arithmetic operations I
implemented.
After several trials and errors I implemented a class which should, as I
understood GiNaC's structure so far, work as expected - but it does not. I'm
now not quite sure what I should concentrate on next or what I misunderstood.
Could you give me a hint if it doesn't take you too much time?
For further reading I attached, as an example, the open interval class files.
I implemented the arithmetic operators in a separate file, just like it is in
GiNaC itself.
Regards,
Ulrich.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: operators.h
Type: text/x-chdr
Size: 886 bytes
Desc: not available
URL: <http://www.cebix.net/pipermail/ginac-list/attachments/20100927/ea011088/attachment.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenInterval.h
Type: text/x-chdr
Size: 4207 bytes
Desc: not available
URL: <http://www.cebix.net/pipermail/ginac-list/attachments/20100927/ea011088/attachment-0001.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: operators.cpp
Type: text/x-c++src
Size: 842 bytes
Desc: not available
URL: <http://www.cebix.net/pipermail/ginac-list/attachments/20100927/ea011088/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenInterval.cpp
Type: text/x-c++src
Size: 4961 bytes
Desc: not available
URL: <http://www.cebix.net/pipermail/ginac-list/attachments/20100927/ea011088/attachment-0001.cpp>
More information about the GiNaC-list
mailing list