wolframalpha

Plot a function with an integer variable in Wolfram Alpha


I'd like to plot the following function in Wolfram Alpha (n is a positive integer variable):

f = n * (2^(-n) - 1)

In Matlab the corresponding function is stem

How can I specify that n is a positive integer variable?

Thank you for your time.


Solution

  • You can use discrete plot:

    discrete plot f = n * (2^(-n) - 1) for 0 < n <= 10