ASKSAGE: Sage Q&A Forum - Latest question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 09 Apr 2019 14:33:04 -0500Direct substitution vs "subs" methodhttps://ask.sagemath.org/question/46068/direct-substitution-vs-subs-method/Suppose I define
var('a b c')
formula = a^2 + 5*b + c
Then I would like to substitute some values, like a=2, b=2 and c=4. As far as I'm aware, there are two options to do this:
formula(a=2, b=2, c=4)
and
formula.subs(a=2, b=2, c=4)
In this particular case, is there any difference between this two options? Is there any difference in some other case(s)?
Thanks in advance for you answers!dsejasTue, 09 Apr 2019 14:33:04 -0500https://ask.sagemath.org/question/46068/