Post Reply 
Where's the Error?
08-30-2021, 03:04 PM
Post: #1
Where's the Error?
I'm trying to run the following program on my Prime (both emulator and physical) and it gives me a syntax error in line 9. I've been looking at it and looking at it and I can't see the error. What am I doing wrong?

Code:
#PYTHON name
from math import *
t=eval("ticks()")
loops=1000
for i in range(0,loops):
  r0=10
  while True:
    x=r0 
    x+=1
    x-=4.567ᴇ−4
    x+=70
    x-=69
    x*=7
    x/=11
    r0-=1
    if r0<=0:
      break
  x=log(x)
  x=sin(x)
  x=sqrt(x)
  x=sqrt(x)
print(x)
t=(eval("ticks()")-t)/1000
print("Index:",34/t*loops) 
#end   
EXPORT calcperf()
BEGIN
  PYTHON(name);
END;

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Where's the Error? - toml_12953 - 08-30-2021 03:04 PM
RE: Where's the Error? - Didier Lachieze - 08-30-2021, 03:36 PM
RE: Where's the Error? - toml_12953 - 08-30-2021, 04:40 PM



User(s) browsing this thread: 1 Guest(s)