Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Plots over Z in mathematica and maple

  1. Jun 20, 2007 #1
    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. jcsd
  3. Jun 20, 2007 #2


    User Avatar
    Science Advisor
    Homework Helper

    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


    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: Jun 20, 2007
  4. Jun 20, 2007 #3
    thats perfect, thanks a lot
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Plots over Z in mathematica and maple
  1. Maple / Mathematica (Replies: 4)

  2. Mathematica or Maple (Replies: 11)

  3. Maple or mathematica? (Replies: 7)

  4. Plotting With Maple (Replies: 1)