Kernel: SageMath 9.1
In [1]:
In [2]:
In [3]:
In [3]:
In [20]:
In [21]:
In [23]:
In [24]:
In [25]:
In [30]:
In [31]:
In [35]:
In [36]:
In [4]:
In [5]:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-5-dbb103d34b56> in <module>()
----> 1 plot_c=plot(sin(x), (x, -Integer(10), -Integer(10)), color="red")
/ext/sage/sage-9.1/local/lib/python3.7/site-packages/sage/misc/decorators.py in wrapper(*args, **kwds)
491 options['__original_opts'] = kwds
492 options.update(kwds)
--> 493 return func(*args, **options)
494
495 #Add the options specified by @options to the signature of the wrapped
/ext/sage/sage-9.1/local/lib/python3.7/site-packages/sage/plot/plot.py in plot(funcs, *args, **kwds)
1958
1959 if hasattr(funcs, 'plot'):
-> 1960 G = funcs.plot(*args, **original_opts)
1961
1962 # If we have extra keywords already set, then update them
/ext/sage/sage-9.1/local/lib/python3.7/site-packages/sage/symbolic/expression.pyx in sage.symbolic.expression.Expression.plot (build/cythonized/sage/symbolic/expression.cpp:63573)()
12100 except NotImplementedError:
12101 return self.function(param)
> 12102 return plot(f, *args, **kwds)
12103
12104 def _plot_fast_callable(self, *vars):
/ext/sage/sage-9.1/local/lib/python3.7/site-packages/sage/misc/decorators.py in wrapper(*args, **kwds)
491 options['__original_opts'] = kwds
492 options.update(kwds)
--> 493 return func(*args, **options)
494
495 #Add the options specified by @options to the signature of the wrapped
/ext/sage/sage-9.1/local/lib/python3.7/site-packages/sage/plot/plot.py in plot(funcs, *args, **kwds)
1977 # if there is one extra arg, then it had better be a tuple
1978 elif n == 1:
-> 1979 G = _plot(funcs, *args, **kwds)
1980 elif n == 2:
1981 # if there are two extra args, then pull them out and pass them as a tuple
/ext/sage/sage-9.1/local/lib/python3.7/site-packages/sage/plot/plot.py in _plot(funcs, xrange, parametric, polar, fill, label, randomize, **options)
2093 orig_funcs = funcs # keep the original functions (for use in legend labels)
2094 excluded_points = []
-> 2095 funcs, ranges = setup_for_eval_on_grid(funcs, [xrange], options['plot_points'])
2096 xmin, xmax, delta = ranges[0]
2097 xrange=ranges[0][:2]
/ext/sage/sage-9.1/local/lib/python3.7/site-packages/sage/plot/misc.py in setup_for_eval_on_grid(funcs, ranges, plot_points, return_vars)
132 range_steps = [abs(range[1] - range[0])/(p-1) for range, p in zip(ranges, plot_points)]
133 if min(range_steps) == float(0):
--> 134 raise ValueError("plot start point and end point must be different")
135
136 options = {}
ValueError: plot start point and end point must be different
In [0]: