[GiNaC-devel] Powers of exponents

Richard B. Kreckel kreckel at ginac.de
Fri Oct 2 00:00:13 CEST 2009


Vladimir V. Kisil wrote:
>>>>>> On Thu, 01 Oct 2009 10:49:03 -0500, Stephen Montgomery-Smith <stephen at missouri.edu> said:
>     SMS> It will also be true for arbitrary x if a is an integer.
> 
> 	Good point! The third iteration of the patch is attached.
[...]
> +	if (x.info(info_flags::integer) || a.info(info_flags::integer)
> +		|| (x.info(info_flags::real) && a.info(info_flags::real)))
> +		return exp(x*a);

Maybe it is just too late, but I don't see the motivation for the "is x 
an integer" condition.

   -richy.
-- 
Richard B. Kreckel
<http://www.ginac.de/~kreckel/>



More information about the GiNaC-devel mailing list