Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2007-04-29 16:49:00
Size: 584
Editor: 88
Comment:
Revision 3 as of 2009-11-17 09:09:13
Size: 551
Editor: vpn-8061f528
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Describe erhansenlik here. {{{
Line 5: Line 5:
import string
Line 25: Line 24:
}}}

# -*- coding: cp1254 -*-
#random number generation
import random
f=open("ran.dat","wr")
n=int(raw_input("kaç tane rasgele sayı istersiniz\n"))
for i in range(n):
    x=random.random()
    y=str(x)
    z=str(i)
    print x
    f.write(y),f.write("\n")
    if i == n-1 :
        print x
        f.close()
import Numeric
import Gnuplot,Gnuplot.funcutils
g=Gnuplot.Gnuplot(debug=1)
g('set grid')
g.plot("'ran.dat' with linespoints")
g('set terminal png')
g('set output "random.png"')
g.plot("'ran.dat' with linespoints")

erhansenlik (last edited 2009-11-17 09:09:13 by vpn-8061f528)

Unable to edit the page? See the FrontPage for instructions.