[GiNaC-list] Automatic transformation of expressions in GiNaC

abpetrov abpetrov at ufacom.ru
Thu Jan 12 20:40:15 CET 2017


Thank you for your answer

Best regards Petrov A.B.



On 01/12/2017 12:58 AM, Vladimir V. Kisil wrote:
>>>>>> On Thu, 12 Jan 2017 00:30:54 +0500, abpetrov <abpetrov at ufacom.ru> said:
>     ABP> Hello, I wrote some program to do some calculations with
>     ABP> GiNaC. But I can see program makes some unwanted
>     ABP> transformations of expressions automatically. Below is simple
>     ABP> example. Can I avoid that transformations?  Wanted output is
>     ABP> sqrt(m/2).
>
>     You get this with
>     
>     ex e = power(m/2,numeric(1,2)).setflag(status_flags::evaluated);     
>
>     Yet, it can be again broken into factors at any use of e in other
>   expressions. 




More information about the GiNaC-list mailing list