You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We sort of thought about this awhile ago, and it does raise an exception in cases there the thing being called is a constant.
sage: (sqrt(2) + 17)(x+2)
---------------------------------------------------------------------------
<type 'exceptions.ValueError'> Traceback (most recent call last)
/opt/sage-2.10.1.rc0/devel/sage-main/sage/<ipython console> in <module>()
/opt/sage-2.10.1.rc0/local/lib/python2.5/site-packages/sage/calculus/calculus.py in __call__(self, *args, **kwargs)
3778
3779 if len(args) > self.number_of_arguments():
-> 3780 raise ValueError, "the number of arguments must be less than or equal to %s"%self.number_of_arguments()
3781
3782 new_ops = []
<type 'exceptions.ValueError'>: the number of arguments must be less than or equal to 0
There is a fair amount of functionality that would be lost by removing function calls on symbolic objects.
garyfurnishmannequin
changed the title
floats - sage has some potentially confusing behavior
[invalid?] floats - sage has some potentially confusing behavior
Jul 14, 2008
This was fixed by #5413. This call behavior is deprecated in 3.4.1.
burcin
changed the title
[invalid?] floats - sage has some potentially confusing behavior
floats - sage has some potentially confusing behavior
Apr 16, 2009
This is really confusing to calculus level students:
There may be no good fix here, but one idea is to override call() on SmybolicVariable to raise an exception.
Component: calculus
Issue created by migration from https://trac.sagemath.org/ticket/2093
The text was updated successfully, but these errors were encountered: