For annotating extrema on a discontinuous function graph, I wanted to use limit() on a piecewise function, but it doesn't seem to be implemented yet? Test case: sage: limit(piecewise([[[0, 1], x], [(1, oo), 1/x]]), x = 1, dir='+')
Error in lines 18-18 Traceback (most recent call last): File "/cocalc/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 996, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> File "/ext/sage/sage-8.0/local/lib/python2.7/site-packages/sage/calculus/calculus.py", line 1337, in limit l = maxima.sr_limit(ex, v, a, 'plus') File "/ext/sage/sage-8.0/local/lib/python2.7/site-packages/sage/interfaces/maxima_lib.py", line 1000, in sr_limit return max_to_sr(maxima_eval(([max_limit], L))) File "/ext/sage/sage-8.0/local/lib/python2.7/site-packages/sage/interfaces/maxima_lib.py", line 1702, in max_to_sr args=[max_to_sr(a) for a in max_args] File "/ext/sage/sage-8.0/local/lib/python2.7/site-packages/sage/interfaces/maxima_lib.py", line 1703, in max_to_sr return op(*args) TypeError: __call__() takes exactly 2 arguments (3 given) Only reference I could find is this 2013 question on ask.sagemath > https://ask.sagemath.org/question/10412/sage-support-fort-finding-the-limit-piecewise-function/ pointing to a 2010 thread here > https://groups.google.com/forum/m/#!msg/sage-support/_aAT5sKUB9I/dyoYmZ8dbSMJ which said it would have to be implemented at some point. I'm using a sage worksheet on cocalc.com ('SageMath version 8.0, Release Date: 2017-07-21'). Any workarounds, despite using infinitesimally close values? #Best Regards/Marcel Partap -- 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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.