-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModule-Sample.lamina
More file actions
36 lines (36 loc) · 952 Bytes
/
Module-Sample.lamina
File metadata and controls
36 lines (36 loc) · 952 Bytes
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
{
"Metadata": {
"Name": "Quadratic Equation Demo",
"Author": "Chill-Astro Software",
"Version": "1.0",
"Description": "Solves ax² + bx + c = 0",
"Repo": "https://github.com/Chill-Astro/Lamina-Modules-Repo"
},
"UI": {
"Formula": "x = [-b ± √(b² - 4ac)] / 2a",
"Inputs": [
{
"Label": "Coefficient a",
"Key": "a",
"Header" : "Enter A",
"Placeholder": "1.0"
},
{
"Label": "Coefficient b",
"Key": "b",
"Header" : "Enter B",
"Placeholder": "0.0"
},
{
"Label": "Coefficient c",
"Key": "c",
"Header" : "Enter C",
"Placeholder": "0.0"
}
]
},
"Logic": {
"Output": "'x1 = ' + ((-b + Sqrt(Pow(b, 2) - 4*a*c)) / (2*a)) + ' | x2 = ' + ((-b - Sqrt(Pow(b, 2) - 4*a*c)) / (2*a))",
"Error": "Invalid Input (Check Discriminant)"
}
}