On Feb 3, 5:10 pm, Andrey Novoseltsev <novos...@gmail.com> wrote: > Hello, > > It is a known bug? Or maybe not considered a bug at all? Quick search > does not show anything related... > > sage: f(x) = x > sage: f > x |--> x > sage: integral(f, x) > x |--> 1/2*x^2 > sage: integral(f, x, 0, 1) > x |--> 1/2 > > The last line shows 1/2 as a function of x, but it is not a function > anymore,
I'll let others comment on this design decision (which does make sense in terms of the logic of callable versus not-callable symbolic expressions). > > sage: f(x, y) = x + y > sage: f > (x, y) |--> x + y > sage: integral(f, x, 0, 1) > (x, y) |--> y + 1/2 > sage: _(3) > y + 1/2 > > I think that here integral definitely should return a function of y > only and if I evaluate it at 3 I get 3.5. This might be a different problem. Shouldn't this give a syntax error, folks? sage: h(x,y) = x+y sage: h(3) y + 3 ??? I thought the whole *point* of the h(x,y) notation was to specify the order - but then you'd figure it would also specify the number of entries. I guess this is a shorthand, perhaps, but then I don't know how to get just h(,3) (which is naturally an error), which you'd want by symmetry. I guess h(x,3) works, but then we should (perhaps?) require h(3,y) as well? - kcrisman -- 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