- #1

- 70

- 0

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

- Mathematica
- Thread starter axeae
- Start date

- #1

- 70

- 0

- #2

CompuChip

Science Advisor

Homework Helper

- 4,306

- 47

There are probably numerous ways to do this in Mathematica (not familiar with Maple). The simplest I can think of right now is: make a table of the values you want and use ListPlot to display them.

For example

F[n_]:=n!

ListPlot[F/@Range[1,5]]

The first line defines your function (I suppose you already have that). In the second line, Range creates a list {1, 2, 3, 4, 5} and then maps each element to the function. The result is a list {F[1], F[2], ..., F[5]} which is then sent to ListPlot for display.

Hope that helps :)

For example

F[n_]:=n!

ListPlot[F/@Range[1,5]]

The first line defines your function (I suppose you already have that). In the second line, Range creates a list {1, 2, 3, 4, 5} and then maps each element to the function. The result is a list {F[1], F[2], ..., F[5]} which is then sent to ListPlot for display.

Hope that helps :)

Last edited:

- #3

- 70

- 0

thats perfect, thanks a lot

Share:

- Replies
- 7

- Views
- 4K