This commit is contained in:
adit098
2020-10-19 21:33:02 +05:30
parent 9fd4a23815
commit 9a62fbc6b8
2 changed files with 12 additions and 1 deletions

View 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

View File

@@ -157,4 +157,5 @@ geometricprogression=Generator("Geometric Progression", 65, "Initial value,Commo
geometricMean=Generator("Geometric Mean of N Numbers",66,"Geometric mean of n numbers A1 , A2 , ... , An = ","(A1*A2*...An)^(1/n) = ans",geometricMeanFunc) geometricMean=Generator("Geometric Mean of N Numbers",66,"Geometric mean of n numbers A1 , A2 , ... , An = ","(A1*A2*...An)^(1/n) = ans",geometricMeanFunc)
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)