fork download
  1. local mx,mn=0,0
  2. local x,y
  3.  
  4. for x=-10,10,0.01 do
  5. for y=-10,10,0.01 do
  6. local a=math.atan2(y,x)
  7. mx=math.max(mx,a)
  8. mn=math.min(mn,a)
  9. end
  10. end
  11.  
  12. print("Max: "..mx.." Min: "..mn)
Success #stdin #stdout 0.97s 4352KB
stdin
Standard input is empty
stdout
Max: 3.1405926539231 Min: -3.1415926535898