mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
Function path changed
This commit is contained in:
@@ -476,14 +476,6 @@ def surfaceAreaCuboid(maxSide = 20, unit = 'm'):
|
|||||||
solution = f"{ans} {unit}^2"
|
solution = f"{ans} {unit}^2"
|
||||||
return problem, solution
|
return problem, solution
|
||||||
|
|
||||||
def surfaceAreaSphere(maxSide = 20, unit = 'm'):
|
|
||||||
r = random.randint(1, maxSide)
|
|
||||||
|
|
||||||
problem = f"Surface area of Sphere with radius = {r}{unit} is"
|
|
||||||
ans = 4 * math.pi * r * r
|
|
||||||
solution = f"{ans} {unit}^2"
|
|
||||||
return problem, solution
|
|
||||||
|
|
||||||
def volumeCuboid(maxSide = 20, unit = 'm'):
|
def volumeCuboid(maxSide = 20, unit = 'm'):
|
||||||
a = random.randint(1, maxSide)
|
a = random.randint(1, maxSide)
|
||||||
b = random.randint(1, maxSide)
|
b = random.randint(1, maxSide)
|
||||||
@@ -841,6 +833,14 @@ def sumOfAnglesOfPolygonFunc(maxSides = 12):
|
|||||||
solution = sum
|
solution = sum
|
||||||
return problem, solution
|
return problem, solution
|
||||||
|
|
||||||
|
def surfaceAreaSphere(maxSide = 20, unit = 'm'):
|
||||||
|
r = random.randint(1, maxSide)
|
||||||
|
|
||||||
|
problem = f"Surface area of Sphere with radius = {r}{unit} is"
|
||||||
|
ans = 4 * math.pi * r * r
|
||||||
|
solution = f"{ans} {unit}^2"
|
||||||
|
return problem, solution
|
||||||
|
|
||||||
# || Class Instances
|
# || Class Instances
|
||||||
|
|
||||||
#Format is:
|
#Format is:
|
||||||
|
|||||||
Reference in New Issue
Block a user