[GiNaC-devel] is_ex_the_function

morusaka at libero.it morusaka at libero.it
Fri Feb 1 06:48:40 CET 2013


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-



More information about the GiNaC-devel mailing list