I read the GiNaC code ,found a question. Under GiNaC namespace ,the under code works well. //***this is my code: ............ #include "ginac/ginac.h" using namespace GiNaC; ............ int main(void) { symbol a("a"),b("b"); ex ex0(a+b); cout<<"ex0 = "<<ex0<<endl; return 0; } // end the code but i find nothing about method ex(symbol) in GiNaC. how does the above statement ex ex0(a) work? help me !! thanks! best regards, Boqun Cheng 2003.10.17
Hello, On Fri, 17 Oct 2003, cbq wrote:
but i find nothing about method ex(symbol) in GiNaC. how does the above statement ex ex0(a) work?
symbol is a child class of class basic. There exists a constructor ex::ex(const basic & other); and thus an ex can be constructed from a symbol. Bye, Chris Dams
Thanks,Chris Dams. How test it beyond the GiNaC ? thanks. ChengBoqun Chris Dams wrote:
Hello,
On Fri, 17 Oct 2003, cbq wrote:
but i find nothing about method ex(symbol) in GiNaC. how does the above statement ex ex0(a) work?
symbol is a child class of class basic. There exists a constructor ex::ex(const basic & other); and thus an ex can be constructed from a symbol.
Bye, Chris Dams
participants (2)
-
cbq
-
Chris Dams