| 1 | initial version |
Here is one example.
f(n)=n^2
list_plot([f(i) for i in range(10)])
But there are many, many ways to do this. For instance, if you are plotting a function that returns an ordered pair, then this might be appropriate.
f(n)=(n,2*n)
points([f(i) for i in range(10)],marker='^')
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.