I've got to write a fortran program that will calculate fractals then graph them in excel.
i've got the iterative equation z=z^2+c. c is a complex constant throughout the equation. heres how i think my program should run.
the program picks a complex value for z and runs it through the iterative equation and if it diverges after a few iterations then the value is discarded and a new one chosen. if the value converges then it is stored and a new value for z is chosen. the problem is i have no clue how to get the program to pick randon values for z, i can do a loop that will store or chuck the value based on its divergence or convergence.
any and all help greatly appreciated, i'm fairly new at this sort of thing
i've got the iterative equation z=z^2+c. c is a complex constant throughout the equation. heres how i think my program should run.
the program picks a complex value for z and runs it through the iterative equation and if it diverges after a few iterations then the value is discarded and a new one chosen. if the value converges then it is stored and a new value for z is chosen. the problem is i have no clue how to get the program to pick randon values for z, i can do a loop that will store or chuck the value based on its divergence or convergence.
any and all help greatly appreciated, i'm fairly new at this sort of thing