[GiNaC-list] arithmetic error on concat two expressions

Doug cape1232 at yahoo.com
Fri Aug 6 22:41:35 CEST 2010


(-1)^2 == 1^2
therefore
(-expr)^2 == expr^2
therefore
(t-exp(x))^2 == (-(t-exp(x))^2 == (exp(x) - t)^2

Do you see it now?


I'm now a little bit confused, cause I'm working for a long time with this problem and I don't see my "thinking error".
If I have an expression eg exp(x), so (t-exp(x))^2 is not the same (exp(x)-t)^2. Sorry I don't see it

Thanks

Phil
_______________________________________________
GiNaC-list mailing list
GiNaC-list at ginac.de
https://www.cebix.net/mailman/listinfo/ginac-list



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cebix.net/pipermail/ginac-list/attachments/20100806/8d863edd/attachment.htm>


More information about the GiNaC-list mailing list