On 1/25/11 8:44 AM, kcrisman wrote:
Reasoning this might happen is as follows:

sage: f(x)=x^3+1
sage: f.derivative()
x |-->  3*x^2
sage: f.integral()
/Users/.../sage-4.6.2.alpha1/local/bin/sage-ipython:1:
DeprecationWarning: Variable of integration should be specified
explicitly.
   #!/usr/bin/env python
x |-->  1/4*x^4 + x

Argument for this deprecation was that one could conceivably want an
integral with respect to other variables.  Personally, I find this
silly in this case, but several - possibly including robertwb :)
though I may not remember correctly - were emphatic that this was
necessary.

If f is a function explicitly of one variable (e.g., f(x)=x^3+1), then it makes sense to use this variable as a default for differentiation or integration. However, if we are dealing with just a symbolic expression (e.g., f=x^3+1), then a default makes less sense to me.

IIRC, previous conversations about this centered on the symbolic expression case, not the explicit one-variable function case. I might be remembering incorrectly, though.

Jason

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to