Plots over Z in mathematica and maple

Click For Summary
SUMMARY

This discussion focuses on plotting integer-defined functions using Mathematica and Maple. The user seeks guidance on visualizing these functions, specifically through Mathematica. A recommended approach involves defining a factorial function F[n_] := n! and utilizing ListPlot to graph the values generated from a specified range, such as Range[1, 5]. This method effectively transforms the function's output into a visual representation.

PREREQUISITES
  • Basic understanding of Mathematica syntax and functions
  • Familiarity with ListPlot for data visualization
  • Knowledge of defining functions in Mathematica
  • Understanding of integer-defined functions and their properties
NEXT STEPS
  • Explore advanced plotting techniques in Mathematica, such as Plot and ParametricPlot
  • Learn about function definitions and manipulations in Mathematica
  • Investigate Maple's plotting capabilities for integer-defined functions
  • Study the use of tables and lists in Mathematica for data representation
USEFUL FOR

Mathematics enthusiasts, educators, and students interested in number theory, as well as programmers and data analysts looking to visualize mathematical functions using Mathematica and Maple.

axeae
Messages
70
Reaction score
0
im sort of new to using maple and mathematica for number theoretical functions, is there any way I can plot the values of an integer defined function in either of these programs? thanks
 
Physics news on Phys.org
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 :)
 
Last edited:
thats perfect, thanks a lot
 

Similar threads

Replies
3
Views
2K
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
Replies
5
Views
3K