Plotting Sequence of Points
How do I plot the sequence {1/n} for n = 1 to 100 in Sage? I browsed plot?, but didn't see it as an option, or I didn't know what it was called.
How do I plot the sequence {1/n} for n = 1 to 100 in Sage? I browsed plot?, but didn't see it as an option, or I didn't know what it was called.
Try this:
points([(n,1/n) for n in range(1,101)])
You can use list_plot
as well.
Thank you - that works.
Asked: 11 years ago
Seen: 3,594 times
Last updated: Aug 27 '13