If you want to plot a list of points, there are several ways to do so,
including points() and list_plot().
def f1(x): return sum(i for i in range(x))
L = [(n,f1(n)) for n in [2..4]]
list_plot(L) # or points(L)
--
You received this message because you are subscribed to the Google Groups
"sage-d
The error message is correct -- you should not expect to be able to plot
this function, because it is only defined for integer values of x, not all
x between 2 and 4. For example:
sage: f1(2.1)
TypeError: 'sage.rings.real_mpfr.RealLiteral' object cannot be interpreted
as an integer
On Tuesd