
#1
Jun2007, 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




#2
Jun2007, 01:08 PM

Sci Advisor
HW Helper
P: 4,301

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 :) 



#3
Jun2007, 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 