Skip to main content
edited title
Link
m_goldberg
  • 108.1k
  • 16
  • 104
  • 259

How can I make a Plot over a discrete set of domain pointpoints?

General cleanup
Source Link
m_goldberg
  • 108.1k
  • 16
  • 104
  • 259

Iterator as How can I make a Plot range parameterover a discrete set of domain point?

I want to plot the function y=2^x for x = Table[ Prime[n], {n,20}]$y=2^x$ at the $x$-values given by Table[Prime[n], {n,20}]

How should I write the plot function? Like so?

list = Table[ Prime[n], {n,20}]

Plot [ y=2^x, Evaluate[list]]

Thank you for your time

list = Table[Prime[n], {n,20}]
Plot[y = 2^x, Evaluate[list]]

Iterator as Plot range parameter

I want to plot the function y=2^x for x = Table[ Prime[n], {n,20}]

How should I write the plot function?

list = Table[ Prime[n], {n,20}]

Plot [ y=2^x, Evaluate[list]]

Thank you for your time

How can I make a Plot over a discrete set of domain point?

I want to plot the function $y=2^x$ at the $x$-values given by Table[Prime[n], {n,20}]

How should I write the plot function? Like so?

list = Table[Prime[n], {n,20}]
Plot[y = 2^x, Evaluate[list]]
edited tags
Link
Source Link
Loading