From morusaka at libero.it Fri Feb 1 06:48:40 2013 From: morusaka at libero.it (morusaka at libero.it) Date: Fri, 1 Feb 2013 06:48:40 +0100 (CET) Subject: [GiNaC-devel] is_ex_the_function Message-ID: <857179693.17310231359697720793.JavaMail.actor@webmail55> 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- From kreckel at ginac.de Sat Feb 2 11:46:40 2013 From: kreckel at ginac.de (Richard B. Kreckel) Date: Sat, 02 Feb 2013 11:46:40 +0100 Subject: [GiNaC-devel] is_ex_the_function In-Reply-To: <857179693.17310231359697720793.JavaMail.actor@webmail55> References: <857179693.17310231359697720793.JavaMail.actor@webmail55> Message-ID: <510CEE90.5020701@ginac.de> On 02/01/2013 06:48 AM, morusaka at 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