Skip to content

Commit d7d0ba7

Browse files
committed
Add Quadratic Equation Solver Calculator as a shortcode
1 parent e98f0cc commit d7d0ba7

File tree

4 files changed

+337
-117
lines changed

4 files changed

+337
-117
lines changed

content/_index.md

Lines changed: 2 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -8,76 +8,6 @@ type: default
88
width: normal
99
---
1010

11-
<!-- markdownlint-disable MD033 MD034 -->
12-
<!-- {{< hextra/hero-badge link="/notes">}}
13-
<div class="hx-w-2 hx-h-2 hx-rounded-full hx-bg-primary-400"></div>
14-
Notes
15-
{{< icon name="arrow-circle-right" attributes="height=14" >}}
16-
{{< /hextra/hero-badge >}}
11+
{{< home/home >}}
1712

18-
<div class="hx-mt-6 hx-mb-6">
19-
{{< hextra/hero-headline >}}
20-
Your Academic Companion: PinNotes
21-
{{< /hextra/hero-headline >}}
22-
</div>
23-
24-
<div class="hx-mb-6">
25-
{{< hextra/hero-subtitle style="margin:.3rem 0 2rem 0">}}
26-
PinNotes is your go-to platform for accessing high-quality academic notes and practice questions across a wide range of subjects.
27-
{{< /hextra/hero-subtitle >}}
28-
</div>
29-
30-
<div class="hx-mb-12">
31-
{{< hextra/hero-button text="Get Started" link="notes" >}}
32-
</div> -->
33-
34-
<!-- <div class="hx-mt-6"></div>
35-
36-
{{< cards cols="2">}}
37-
{{< card link="/" title="Local Image" image="/images/code-2.jpg" subtitle="Raw image under static directory." >}}
38-
{{< card link="/" title="Local Image" image="/images/orange.jpg" subtitle="Image under assets directory, processed by Hugo." method="Resize" options="600x q80 webp" >}}
39-
{{< /cards >}} -->
40-
41-
<div class="hx-mb-6"></div>
42-
43-
<!-- {{< hextra/feature-grid >}}
44-
{{< hextra/feature-card
45-
title="Practice Questions"
46-
subtitle="Environment variables are a simple way of configuring your applications, their deployment and their behaviour."
47-
icon="sparkles"
48-
link="/exercises/"
49-
class="hx-aspect-auto md:hx-aspect-[1.1/1] max-md:hx-min-h-[340px]"
50-
image="/images/green.jpg"
51-
imageClass="hx-top-[40%] hx-left-[24px] hx-w-[180%] sm:hx-w-[110%] dark:hx-opacity-80"
52-
style="background: radial-gradient(ellipse at 50% 80%,rgba(58, 56, 113, 0.1),hsla(0,0%,100%,0));"
53-
>}}
54-
{{< hextra/feature-card
55-
title="Blogs"
56-
subtitle="The Clever Cloud API reference."
57-
link="blog"
58-
class="hx-aspect-auto md:hx-aspect-[1.1/1] max-lg:hx-min-h-[340px]"
59-
image="/images/abstract-1.jpg"
60-
imageClass="hx-top-[40%] hx-left-[36px] hx-w-[180%] sm:hx-w-[110%] dark:hx-opacity-80"
61-
style="background: radial-gradient(ellipse at 50% 80%,rgba(203, 28, 66, 0.1),hsla(0,0%,100%,0));"
62-
>}}
63-
64-
{{< hextra/feature-card
65-
title="Extra Weekly Activites"
66-
subtitle="See supported languages and how to configure your app to deploy successfully"
67-
link="doc/applications"
68-
>}}
69-
{{< hextra/feature-card
70-
title="IITM BS Degree Graded Assignments"
71-
subtitle="See available add-ons such as MySQL, PostgreSQL, Redis, Mongo, Elastic..."
72-
link="assignments"
73-
>}}
74-
{{< hextra/feature-card
75-
title="About "
76-
icon="github"
77-
subtitle="See available add-ons such as MySQL, PostgreSQL, Redis, Mongo, Elastic..."
78-
link="about"
79-
>}}
80-
81-
{{< /hextra/feature-grid >}} -->
82-
83-
{{< home/home >}}
13+
{{< home/quad_eq >}}

content/exercises/graded-assignments/statistics-1/q1.md

Lines changed: 19 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -31,51 +31,26 @@ This is an inline equation: $E = mc^2$ and a block equation: $$a^2 + b^2 = c^2$$
3131
{{< /border >}}
3232

3333

34-
## More Charts
35-
36-
#### Line Chart
37-
38-
{{< chart >}}
39-
40-
type: 'line',
41-
data: {
42-
labels: [
43-
'Jan',
44-
'Feb',
45-
'Mar',
46-
'Apr',
47-
'May',
48-
'June',
49-
'July'
50-
],
51-
datasets: [{
52-
label: 'My First Dataset',
53-
data: [65, 59, 80, 81, 56, 55, 40],
54-
fill: false,
55-
borderColor: 'rgb(192, 75, 143)',
56-
tension: 0.1
57-
}]
58-
},
59-
60-
{{< /chart >}}
34+
This shortcode allows you to solve a quadratic equation of the form $ax^2 + bx + c = 0$ by just entering the coefficients.
6135

36+
### Example 1: Two Real Roots
37+
This solves the equation $x^2 - 5x + 6 = 0$.
38+
{{< home/quad_eq a="1" b="-5" c="6" >}}
6239

6340
---
6441

65-
#### Bar Chart
66-
67-
{{< chart >}}
68-
type: 'bar',
69-
data: {
70-
labels: ['Tomato', 'Blueberry', 'Banana', 'Lime', 'Orange'],
71-
datasets: [{
72-
label: '# of votes',
73-
data: [12, 19, 3, 5, 3],
74-
}]
75-
}
76-
{{< /chart >}}
77-
78-
% KaTeX block notation
79-
$$
80-
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
81-
$$
42+
### Example 2: One Real Root
43+
This solves the equation $y^2 + 2y + 1 = 0$.
44+
{{< home/quad_eq a="1" b="2" c="1" var="y" >}}
45+
46+
---
47+
48+
### Example 3: Complex Roots
49+
This solves the equation $x^2 + x + 1 = 0$.
50+
{{< home/quad_eq a="1" b="1" c="1" >}}
51+
52+
---
53+
54+
### Example 4: A Blank Solver
55+
Try your own coefficients below.
56+
{{< home/quad_eq >}}

layouts/shortcodes/home/home.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11

22
{{ partial "home/home.html" . }}
3-

0 commit comments

Comments
 (0)