is_ex_the_function
Hi, I can't understand why, when I try to use is_ex_the_function with the power function, I get a:
error: ‘power_SERIAL’ was not declared in this scope
My code is something like this: symbol x("x"); ex expr = power(x, 2); std::cout << expr << std::endl; std::cout << is_ex_the_function(expr, power) << std::endl; I get my error on line 4. On the other hand, everything works fine with: symbol x("x"); ex expr = sin(x); std::cout << expr << std::endl; std::cout << is_ex_the_function(expr, sin) << std::endl; Could you please help me? Thank you, Luca-
On 02/01/2013 06:48 AM, morusaka@libero.it wrote:
I can't understand why, when I try to use is_ex_the_function with the power function, I get a:
error: ‘power_SERIAL’ was not declared in this scope
Like add and mul, class power is not a function: http://www.ginac.de/tutorial/The-class-hierarchy.html#The-class-hierarchy -richy. -- Richard B. Kreckel
participants (2)
-
morusaka@libero.it
-
Richard B. Kreckel