Ask Your Question

cookchar's profile - activity

2018-04-10 00:39:51 -0500 received badge  Student (source)
2018-04-10 00:36:38 -0500 asked a question parametric_plot gives "IndexError: list index out of range" in SageMath 8.1-11 on Arch Linux

I've been attempting to plot a parabola, but I keep running into an error from the "" file as an "index out of range" error. Help? My OS is Arch Linux, using the Cinnamon DE, and version 8.1-11 of Sagemath. Attempted code:

sage: var('t')
sage: parametric_plot((t,t^2),(t,-4,4))

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "", line 10, in <module>
    exec compile(u'open("","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("cGFyYW1ldHJpY19wbG90KCh0LHReMiksKHQsLTQsNCkp"),globals())+"\\n"); execfile(os.path.abspath(""))
  File "", line 1, in <module>

  File "/tmp/tmpwjIIYE/", line 3, in <module>
    exec compile(u'parametric_plot((t,t**_sage_const_2 ),(t,-_sage_const_4 ,_sage_const_4 ))
  File "", line 1, in <module>

  File "/usr/lib/python2.7/site-packages/sage/misc/", line 564, in wrapper
    return func(*args, **options)
  File "/usr/lib/python2.7/site-packages/sage/plot/", line 2621, in parametric_plot
    return plot(funcs, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/sage/misc/", line 564, in wrapper
    return func(*args, **options)
  File "/usr/lib/python2.7/site-packages/sage/plot/", line 1950, in plot
    G = _plot(funcs, *args, **kwds)
  File "/usr/lib/python2.7/site-packages/sage/plot/", line 2067, in _plot
    funcs, ranges = setup_for_eval_on_grid(funcs, [xrange], options['plot_points'])
  File "/usr/lib/python2.7/site-packages/sage/plot/", line 150, in setup_for_eval_on_grid
    return fast_float(funcs, *vars,**options), [tuple(range+[range_step]) for range,range_step in zip(ranges, range_steps)]
  File "sage/ext/fast_eval.pyx", line 1384, in sage.ext.fast_eval.fast_float (build/cythonized/sage/ext/fast_eval.c:11037)
  File "sage/ext/fast_eval.pyx", line 1399, in sage.ext.fast_eval.fast_float (build/cythonized/sage/ext/fast_eval.c:11258)
  File "sage/ext/fast_callable.pyx", line 465, in sage.ext.fast_callable.fast_callable (build/cythonized/sage/ext/fast_callable.c:4634)
  File "sage/symbolic/expression.pyx", line 11679, in sage.symbolic.expression.Expression._fast_callable_ (build/cythonized/sage/symbolic/expression.cpp:66334)
  File "/usr/lib/python2.7/site-packages/sage/symbolic/", line 1757, in fast_callable
    return FastCallableConverter(ex, etb)()
  File "/usr/lib/python2.7/site-packages/sage/symbolic/", line 218, in __call__
    return self.arithmetic(ex, operator)
  File "/usr/lib/python2.7/site-packages/sage/symbolic/", line 1670, in arithmetic
    exponent = operands[1]
IndexError: list index out of range