why integral ($ $$1/x$, $x$) returns $log(x)$? Shouldn't it return $log(|x|)$. Similarly, integral$(tan(x),x)$ returns $log(sec(x))$ shouldn't it return $log(|sec(x)|)$. Can anyone explain? After previous post, I dig a little bit and find: Now, anyway to set real_part(x)=x and imag_part(x)=0 in "eq" and get the resultant "eq"? More>> Everything is fine in the above computation except the word "real_part". Anyway to get rid of that? |

The default backend for symbolic integration is Maxima. You can find out more about the Maxima interface here: http://www.sagemath.org/doc/reference/sage/interfaces/maxima.html In Maxima, there is a global flag called I don't know if there is currently a way to accomplish this through the Sage which is correct.
maybe 'logabs:true' should be set by default in Sage's maxima environment -- what do you think? On the other hand, if setting such global flags is an important part of working with maxima, maybe Sage should add functionality for setting and using them natively, rather than trying to find a default setting everyone will like
niles (Mar 16 '11)
Ordinarily we try to stay away from that sort of thing unless absolutely (hee-hee) necessary, but this has come up before. See http://maxima.sourceforge.net/docs/manual/en/maxima_14.html - I don't see any obvious negative side effects. At the same time, this has been the behavior for a LONG time, and it would be worth bringing up on sage-devel if you want to do it.
kcrisman (Mar 18 '11) |

Asked: **Mar 16 '11**

Seen: **641 times**

Last updated: **Mar 16 '11**

powered by ASKBOT version 0.7.22

Copyright Sage, 2010. Some rights reserved under creative commons license.