Skip to content

Commit a1a7c48

Browse files
author
aryan
committed
Added Calculator with multiple formulas
1 parent 75c4923 commit a1a7c48

File tree

7 files changed

+713
-5
lines changed

7 files changed

+713
-5
lines changed

content/exercises/graded-assignments/mathematics-1/q2.md

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,44 @@ excludeSearch: false
1717

1818
{{< math/formula n="8, 6" m="3, 2" formula="n + m" >}}
1919

20+
### Math Calculator
2021

2122
<!-- {{< math/calculator >}} -->
2223

2324
<!-- {{< math/calculator formula="(n1+n2)^3" >}} -->
2425

2526

2627

27-
{{< math/calc n1="2" n2="3" a="4" b="5" formula="n1*a + n2*b" >}}
28+
<!-- {{< math/calc n1="2" n2="3" a="4" b="5" formula="n1*a + n2*b" >}} -->
2829

29-
{{< math/calc x="0.5" formula="Math.asin(x) * 180 / Math.PI" >}}
30+
<!-- {{< math/calc x="0.5" formula="Math.asin(x) * 180 / Math.PI" >}} -->
31+
32+
33+
<!-- {{< math/calc2 a="2" b="3" formula="a * b + 5" >}} -->
34+
35+
<!-- {{< math/calc2 a="2" b="3" formula="a * b - 5" >}} -->
36+
37+
<!-- {{< math/calc2 n1="2" n2="3" m1="4" m2="5" formula1="n1 + m1" formula2="n2 * m2" >}} -->
38+
39+
{{< math/calc2 n1="2" n2="3" m1="4" m2="5" x="0.5" formula1="n1 + m1" formula2="n2 * m2" formula3="Math.asin(x) * 180 / Math.PI" >}}
40+
41+
<!-- {{< calc formula="a + b * c" a="2" b="3" c="4" >}} -->
42+
43+
44+
<!-- {{< math/calc2 a="2" b="3" formula="a * b - 5" >}} -->
45+
46+
47+
48+
49+
<!-- {{< math/calc3 a=10 b=5 formula="a + b * 2" >}} -->
50+
51+
<!-- {{< math/calc3 x=2 y=3 z=4 formula="x * y + z" >}} -->
52+
53+
<!-- {{< math/calc3 initialValue=10 growthRate=2 time=5 formula="initialValue * (1 + growthRate/100) ^ time" >}} -->
54+
55+
56+
57+
58+
<!-- {{< math/add_numbers num1="5" num2="10" buttonText="Add Now" >}} -->
59+
60+
<!-- {{< math/add_numbers num1="5" num2="20" buttonText="Add Now" >}} -->

0 commit comments

Comments
 (0)