mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
area of circle fixes
This commit is contained in:
@@ -116,3 +116,4 @@ from .arc_length import *
|
||||
from .binomial_distribution import *
|
||||
from .stationary_points import *
|
||||
from .expanding import *
|
||||
from .area_of_circle import *
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
|
||||
from .__init__ import *
|
||||
|
||||
|
||||
def areaCircle(maxRadius=100):
|
||||
r = random.randint(0, maxRadius)
|
||||
pi = 22/7
|
||||
area = pi*r*r
|
||||
pi = 22 / 7
|
||||
area = pi * r * r
|
||||
problem = f"Area of circle with radius {r}"
|
||||
solution = area
|
||||
return problem, solution
|
||||
|
||||
|
||||
areaCircle = Generator("Area", 63, "pi*r*r=", "area", areaCircle)
|
||||
area_of_circle = Generator("Area of Circle", 112, "pi*r*r=", "area", areaCircle)
|
||||
Reference in New Issue
Block a user