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

Program for graphing Riemann zeta function

  1. May 14, 2008 #1
    Hello I plan on applying to the university of waterloo next year and due to the fact that many of my marks are not that great (failed gr 10 math) I decided to start a site to showcase my ability in math and programing.

    For those of you who are interested I wrote a program to graph regions of the Riemann zeta function which you can find here:


    I also give a short description of what the Riemann hypothesis means which you find here:


    as well as how to calculate a value of the zeta function:


    I welcome you to point any mistakes that I may have made and also encourage you to check out the main page if you like as I list several resources for finding free video lectures and information.
  2. jcsd
  3. May 20, 2008 #2
    Note: I recompiled the zeta function viewer program with static linking so that it no longer generates an error complaining about the program configuration being incorrect.
  4. Jun 1, 2008 #3
    Just to let anyone know who downloaded the program before I screwed up in the calculation of zeta function so any input values for zeta with an imaginary part will were wrong.

    I thougth it was working because all the values with only real parts checked out to be ok and I was able to calculate some of the zeros correctly.

    I have not been able to find a source that says gives some examples of what correct output for complex input values should be so I have had to rely on a graph of the real and imaginary part on just the real critical line and see if they look like they are prety close.

    The program has been fixed and should be calculating correct (or at least more correct) values now.
  5. Jun 1, 2008 #4
    For those who decline to look at your program. Why not post some of the results of the program so others can check the accuracy as compared with the expensive and out of reach programs for me? Also what corrections did you make to get the current results?

    PS I got a few F's occasionally in math but also many A's. I could do the work but sometimes didn't make the effort. Don't take the easy way and settle on a program of study or career that doesn't suit your interests like I did. Even if you are not accepted now stay with your dreams and make them come true. I found myself in a career that paid well but failed to work towards my real interests and wasn't ready to take the opportunity to change careers, i.e. get into computer programming, when the chance came. A retired patent examiner.
  6. Jun 2, 2008 #5
    I was messing around trying to figure out what the period of a pattern I noticed was in the zeta function and found that my calculations on paper did not agree with what the program told me. I then reviewed my code and found that when calculating the real part I overwrote a variable that I needed to calculate the Imaginary part making the imaginary values wrong. This was fixed by introducing a couple more variables.

    Here are some calculations made by my program using the first 10000 iterations:

    zeta(3 + i0) = 1.202057 + i0

    zeta(3 + i0.1) = 1.200861 - i0.019750

    zeta(0.5 + i33) = -0.044787 + i0.081399

    zeta(1 + i33) = 0.418661 + i0.0244871

    zeta(1 + i123456789) = 0.274378 - i0.582564
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook