Ask Your Question

liblenovo's profile - activity

2021-04-03 08:26:28 +0200 received badge  Nice Question (source)
2019-08-30 17:57:15 +0200 received badge  Famous Question (source)
2019-08-30 17:57:15 +0200 received badge  Notable Question (source)
2015-05-20 01:28:33 +0200 received badge  Popular Question (source)
2014-02-16 20:24:10 +0200 received badge  Taxonomist
2013-03-14 14:16:28 +0200 commented answer The difference between f(x=3) and f(3) of callable symbolic expression 'f'

Inspired by your answer. I finally found that if no keywords was specified, f(3) will call variables() method to make a dict to pass to sage.symbolic.expression.Expression.subs method. It is the subs method do the actual work. So when varibles() return None, the dict cannot be made, an error was raised. The code is in Line 683 of /devel/sage/sage/symbolic/ring.pyx

2013-03-14 13:00:30 +0200 received badge  Student (source)
2013-03-14 11:09:16 +0200 received badge  Editor (source)
2013-03-14 11:06:52 +0200 asked a question The difference between f(x=3) and f(3) of callable symbolic expression 'f'

f=x.derivative()

f(3) ----> error

f(x=3) ----> ok!

Dose f(x=3) call the method __call__?