mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
fix #250
This commit is contained in:
10
mathgenerator/funcs/DegreeToRadian.py
Normal file
10
mathgenerator/funcs/DegreeToRadian.py
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
from .__init__ import *
|
||||||
|
|
||||||
|
|
||||||
|
def DegreeToRadian(maxAngle=360):
|
||||||
|
angle = random.randint(1, maxAngle)
|
||||||
|
radian = round(math.radians(angle), 2)
|
||||||
|
problem = f"{angle} Degrees is equal to Radian = "
|
||||||
|
solution = radian
|
||||||
|
|
||||||
|
return problem, solution
|
||||||
@@ -158,3 +158,4 @@ geometricMean=Generator("Geometric Mean of N Numbers",66,"Geometric mean of n nu
|
|||||||
harmonicMean=Generator("Harmonic Mean of N Numbers",67,"Harmonic mean of n numbers A1 , A2 , ... , An = "," n/((1/A1) + (1/A2) + ... + (1/An)) = ans",harmonicMeanFunc)
|
harmonicMean=Generator("Harmonic Mean of N Numbers",67,"Harmonic mean of n numbers A1 , A2 , ... , An = "," n/((1/A1) + (1/A2) + ... + (1/An)) = ans",harmonicMeanFunc)
|
||||||
decimalToHexadecimal = Generator("Decimal to Hexadecimal", 68,
|
decimalToHexadecimal = Generator("Decimal to Hexadecimal", 68,
|
||||||
"Hexadecimal of a=", "b", DecimalToHexFunc)
|
"Hexadecimal of a=", "b", DecimalToHexFunc)
|
||||||
|
degreeToRadian = Generator("Degree To Radian", 69, "Radian of angle=", "radian", DegreeToRadian)
|
||||||
Reference in New Issue
Block a user