On Tuesday, March 19, 2019 at 4:52:19 AM UTC-7, Emmanuel Charpentier wrote:
>
> Defining a symbolic function seems to declare its arguments. Is this
> expected ?
>
It's certainly explicit programmed:
sage: preparse("f(x)=1")
'__tmp__=var("x"); f = symbolic_expression(Integer(1)).function(x)
On the plus side, we have very concise syntax for defining symbolic
variables without having to write quotes:
sage: _(x,y,z)=1
sage: x^2+y^2+z^2
x^2 + y^2 + z^2
which is shorter than var("x,y,z") AND it doesn't cause a tuple to be
printed.
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.