- #1
Lojzek
- 249
- 1
I would like to define and plot a list of functions in Mathematica without
typing all them, but I can't find the solution.
Let's say that we want to plot x, x^2, ..., x^10 on interval [0,1].
This is what I tried:
funclist=Table[#^n&,(n,1,10)]
Plot[funclist[x],(x,0,1)]
This does not work: n appears in the list as a variable. How can I tell the program that
the current numerical value of n should be used for the power?
typing all them, but I can't find the solution.
Let's say that we want to plot x, x^2, ..., x^10 on interval [0,1].
This is what I tried:
funclist=Table[#^n&,(n,1,10)]
Plot[funclist[x],(x,0,1)]
This does not work: n appears in the list as a variable. How can I tell the program that
the current numerical value of n should be used for the power?