Register to reply

Plots over Z in mathematica and maple

by axeae
Tags: maple, mathematica, plots
Share this thread:
axeae
#1
Jun20-07, 12:50 PM
P: 70
im sorta 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
Phys.Org News Partner Science news on Phys.org
Climate change increases risk of crop slowdown in next 20 years
Researcher part of team studying ways to better predict intensity of hurricanes
New molecule puts scientists a step closer to understanding hydrogen storage
CompuChip
#2
Jun20-07, 01:08 PM
Sci Advisor
HW Helper
P: 4,300
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 :)
axeae
#3
Jun20-07, 04:31 PM
P: 70
thats perfect, thanks a lot


Register to reply

Related Discussions
3D Data Plots in Mathematica 5.2 Math & Science Software 0
Maple/Mathematica Help Math & Science Software 1
Maple contour plots from an array Math & Science Software 0
Mathematica - Joining Plots Math & Science Software 0
Maple plots Math & Science Software 0