-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenus.py
More file actions
101 lines (88 loc) · 2.28 KB
/
menus.py
File metadata and controls
101 lines (88 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
from math_is_easy import mainmenu
from custom_math import *
from utils.menu import *
from preferences import *
# ==================
# = Subclass Menus =
# ==================
# = Trig =
class lawofsinecosines(menu):
text = "Law of sine and cosines"
def __init__(self):
super().__init__([SineAngle, SineSide, CosineAngle, CosineSide])
class trig_equations_menu(menu):
text = "Equations"
def __init__(self):
super().__init__([
QuadraticFormula,
# HeronEquation,
PythagoreanTheorem
])
class trig_graph_menu(menu):
text = "Graphing"
def __init__(self):
super().__init__([
Graph,
ParametricEquation,
SolveWave
])
class TrigIdentities(menu):
text = "Identities"
def __init__(self):
super().__init__([
SinDifference,
CosDifference
])
class Polynomials(header_menu):
text = "Polynomials"
def __init__(self):
super().__init__([
StandardToVertex,
Polynomial_SolveU,
SolvePolynomial
])
class vector_menu(menu):
text = "Vectors"
def __init__(self):
super().__init__([
VectorOperations,
PolarCoorToCoords,
MagnitudeOfVector,
DotProduct,
Projection,
VectorWork
])
class trig_menu(header_menu):
text = "Trig"
def __init__(self):
super().__init__([
# Menus
lawofsinecosines,
trig_equations_menu,
trig_graph_menu,
vector_menu,
# Calculations
CountTriangles,
ComplexNumberToTrig,
TrigToComplexNumber,
TrigIdentities,
EvaluateExpression
])
# = Circles =
class circle_menu(header_menu):
text = "Circles"
def __init__(self):
super().__init__([
CircleArea,
CircleCircumference,
CircleFromCenterAndTangent
])
# = Main Menu =
@mainmenu
class main_menu(header_menu):
def __init__(self):
super().__init__([
circle_menu,
trig_menu,
Polynomials
])