1 Feb
2013
1 Feb
'13
6:48 a.m.
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-