[GiNaC-list] Simplification in GiNaC
abpetrov
abpetrov at ufacom.ru
Sat Jan 7 20:06:55 CET 2017
That's works.
Thank you for your answer
Best regards Petrov A.B.
On 01/07/2017 03:53 PM, Vladimir V. Kisil wrote:
> Hi,
>
> Avoiding discussion on correct transformations towards simpler
> expressions in general, here is an advise on your particular example.
>
> You can use susb method with wildcards to make manual transformation
>
> pow(X,1/2)*pow(Y,1/2) -> pow(X*Y,1/2)
>
> Also, with square roots it will be better to use possymbol instead of
> realsymbol whenever possible. This even can make the desired
> transformation automatically through the expand method. (the desired
> answer is not correct for arbitrary reals, indeed)
>
> Best wishes,
> Vladimir
More information about the GiNaC-list
mailing list