After execute test.py
This commit is contained in:
Regular → Executable
+2
-1
@@ -1,8 +1,9 @@
|
||||
#!/usr/bin/python3
|
||||
from trigonometry import sin
|
||||
import math
|
||||
|
||||
pi = math.pi
|
||||
print('pi:', pi)
|
||||
for alpha in [0, pi, pi/2, pi/3, pi/4, pi/6]:
|
||||
print(f'For angle: {0 if alpha == 0 else "pi/"+str(int(pi/alpha))}, Sine is ~ {sin(alpha)}')
|
||||
print(f'For angle: {0 if alpha == 0 else "pi/"+str(int(pi/alpha))}, Sine is ~ {sin(alpha)}')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user