Ask Your Question
0

Plotting Sequence of Points

asked 11 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 11 years ago

kcrisman gravatar image

Try this:

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

You can use list_plot as well.

Preview: (hide)
link

Comments

Thank you - that works.

david8381 gravatar imagedavid8381 ( 11 years ago )

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: 11 years ago

Seen: 3,594 times

Last updated: Aug 27 '13