12 Jan
2017
12 Jan
'17
8:40 p.m.
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@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.