Ask Your Question
0

Plotting Sequence of Points

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

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
2

answered 2013-08-27 14:01:10 +0100

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

Comments

Thank you - that works.

david8381 gravatar imagedavid8381 ( 2013-08-27 14:15:14 +0100 )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

Stats

Asked: 2013-08-27 13:43:54 +0100

Seen: 3,531 times

Last updated: Aug 27 '13