On 2/4/12 12:26 PM, Andrey Novoseltsev wrote:
On Feb 4, 11:21 am, Jason Grout<jason-s...@creativetrax.com> wrote:
On 2/4/12 11:24 AM, Keshav Kini wrote:
On Saturday, February 4, 2012 11:43:44 PM UTC+8, Andrey Novoseltsev wrote:
But in definite integrals the variable of integration is a dummy one
and does not exist out of the integral!
+1. This behavior makes no sense to me.
So what happens in a case like this?
sage: f(x,y,z)=sin(x*y*z)
sage: integrate(f,(y,0,3))
Does the result become a function
(x,z) |--> whatever?
I can see it making sense, but I can also see it causing problems.
Thanks,
Jason
What kind of problems can it cause?.. We have a function with
variables which are named and have a particular order. If one of them
is gone, the rest keeps both their names and the same ordering.
I was thinking of confusion for the user, because the user has to be
more careful about how they call the function because the arguments
change. Now, this can be alleviated by the user using keyword
arguments, or paying attention and being aware of integration removing a
variable. Again, I don't think this is insurmountable, and arguably
it's desirable to make the user think about how the function domain is
changing, but I feel obligated to bring up the issue as a point against
changing things in a backwards-incompatible way.
Thanks,
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