Ask Your Question

Plotting Sequence of Points

asked 2013-08-27 06:43:54 -0500

david8381 gravatar image

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-08-27 07:01:10 -0500

kcrisman gravatar image

Try this:

points([(n,1/n) for n in range(1,101)])

You can use list_plot as well.

edit flag offensive delete link more


Thank you - that works.

david8381 gravatar imagedavid8381 ( 2013-08-27 07:15:14 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-08-27 06:43:54 -0500

Seen: 1,210 times

Last updated: Aug 27 '13