Ask Your Question

Plotting Sequence of Points

asked 2013-08-27 13:43:54 +0200

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 14:01:10 +0200

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 14:15:14 +0200 )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 13:43:54 +0200

Seen: 3,053 times

Last updated: Aug 27 '13