mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
Create degreeToRadFunc.py
This commit is contained in:
11
mathgenerator/funcs/degreeToRadFunc.py
Normal file
11
mathgenerator/funcs/degreeToRadFunc.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from .__init__ import *
|
||||
from numpy import pi
|
||||
|
||||
def degreeToRadFunc(max_deg=360):
|
||||
a = random.randint(0, max_deg)
|
||||
b = (pi*a)/180
|
||||
|
||||
problem = "Angle " + str(a) + " in radians is = "
|
||||
solution = str(b)
|
||||
|
||||
return problem, solution
|
||||
Reference in New Issue
Block a user