Commit c50ef58c authored by Neil Gershenfeld's avatar Neil Gershenfeld
Browse files

wip

parent 29109c57
Pipeline #8267 passed with stage
in 1 second
......@@ -17,5 +17,5 @@ i = arange(1,(NPTS+1),dtype=float64)
pi = sum(0.5/((i-0.75)*(i-.25)))
end_time = time.time()
mflops = NPTS*5.0/(1.0e6*(end_time-start_time))
print "NPTS = %d, pi = %f"%(NPTS,pi)
print "time = %f, estimated MFlops = %f"%(end_time-start_time,mflops)
print("NPTS = %d, pi = %f"%(NPTS,pi))
print("time = %f, estimated MFlops = %f"%(end_time-start_time,mflops))
......@@ -17,6 +17,6 @@ for i in range(1,(NPTS+1)):
pi += a/((i-b)*(i-c))
end_time = time.time()
mflops = NPTS*5.0/(1.0e6*(end_time-start_time))
print "NPTS = %d, pi = %f"%(NPTS,pi)
print "time = %f, estimated MFlops = %f"%(end_time-start_time,mflops)
print("NPTS = %d, pi = %f"%(NPTS,pi))
print("time = %f, estimated MFlops = %f"%(end_time-start_time,mflops))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment