mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
complete restructure of the project. minor tweaks
This commit is contained in:
14
mathgenerator/funcs/fourthAngleOfQuadriFunc.py
Normal file
14
mathgenerator/funcs/fourthAngleOfQuadriFunc.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from .__init__ import *
|
||||
|
||||
|
||||
def fourthAngleOfQuadriFunc(maxAngle=180):
|
||||
angle1 = random.randint(1, maxAngle)
|
||||
angle2 = random.randint(1, 240 - angle1)
|
||||
angle3 = random.randint(1, 340 - (angle1 + angle2))
|
||||
|
||||
sum_ = angle1 + angle2 + angle3
|
||||
angle4 = 360 - sum_
|
||||
|
||||
problem = f"Fourth angle of quadrilateral with angles {angle1} , {angle2}, {angle3} ="
|
||||
solution = angle4
|
||||
return problem, solution
|
||||
Reference in New Issue
Block a user