Skip to content

Commit 04dc3c6

Browse files
committed
pendulum and spring period/frequency
1 parent 62d16dc commit 04dc3c6

File tree

7 files changed

+69
-3
lines changed

7 files changed

+69
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Welcome to [https://stemformulas.com/](https://stemformulas.com/), the site with the goal of being the best place in the world to look for STEM-related formulas.
66

77
## Features:
8-
- 92 formulas and counting (we gotta pump those numbers up)
8+
- 94 formulas and counting (we gotta pump those numbers up)
99
- The search bar is in focus on site load for quick searching
1010
- The / key can be used to open the search on any page
1111
- LaTeX can be copied by clicking on it on any formula's page

content/formulas/hookes-law-springs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Hooke's Law (Spring Constant)
33
description: Hooke's Law and the Spring Constant relate the force and displacement of a spring.
44
summary: Hooke's Law and the Spring Constant relate the force and displacement of a spring.
5-
tags: ["physics", "mechanical engineering", "materials engineering"]
5+
tags: ["physics", "mechanics"]
66
date: 2022-12-30
77
latex: F = -kx
88
---
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: Pendulum Period/Frequency
3+
description: "The formula for the period and frequency of a simple pendulum."
4+
summary: "The formula for the period of a simple pendulum."
5+
tags: ["physics", "mechanics"]
6+
date: 2025-01-04
7+
latex: T_p = 2 \pi \sqrt{\frac{\ell}{g}}
8+
---
9+
10+
{{< katex >}}
11+
12+
The formula for the period of a simple pendulum is:
13+
14+
$$ T_p = 2 \pi \sqrt{\frac{\ell}{g}} $$
15+
16+
Where
17+
18+
* \\(\small T_p\\) is the period of oscillation,
19+
* \\(\small \ell\\) is the length of the pendulum, and
20+
* \\(\small g\\) is the acceleration due to gravity.
21+
22+
The frequency of oscillation is the reciprocal of the period:
23+
24+
$$ f_p = \frac{1}{2 \pi} \sqrt{\frac{g}{\ell}} $$
25+
26+
Where
27+
28+
* \\(\small f_p\\) is the frequency of oscillation.
29+
30+
**Note:** These formulas use an approximation that assume small oscillations (small angles) and neglects air resistance, damping, and the mass of the string.
31+
32+
## Sources
33+
34+
- [LibreTexts Physics](https://phys.libretexts.org/Bookshelves/University_Physics/University_Physics_(OpenStax)/Book%3A_University_Physics_I_-_Mechanics_Sound_Oscillations_and_Waves_(OpenStax)/15%3A_Oscillations/15.05%3A_Pendulums)
52.2 KB
Loading
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
title: Spring Period/Frequency
3+
description: "The formula for the period and frequency of a spring in simple harmonic motion."
4+
summary: "The formula for the period and frequency of a spring in simple harmonic motion."
5+
tags: ["physics", "mechanics"]
6+
date: 2025-01-03
7+
latex: T_s = 2 \pi \sqrt{\frac{m}{k}}
8+
---
9+
10+
{{< katex >}}
11+
12+
The formula for the period of a spring in simple harmonic motion is:
13+
14+
$$ T_s = 2 \pi \sqrt{\frac{m}{k}} $$
15+
16+
Where
17+
18+
* \\(\small T_s\\) is the period of oscillation,
19+
* \\(\small m\\) is the mass attached to the spring, and
20+
* \\(\small k\\) is the spring constant of the spring.
21+
22+
The frequency of oscillation is the reciprocal of the period:
23+
24+
$$ f_s = \frac{1}{2 \pi} \sqrt{\frac{k}{m}} $$
25+
26+
Where
27+
28+
* \\(\small f_s\\) is the frequency of oscillation.
29+
30+
## Sources
31+
32+
- [HyperPhysics](http://hyperphysics.phy-astr.gsu.edu/hbase/shm2.html)
51.7 KB
Loading

normalize_preview_imgs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def normalize_image(img_path, height, width):
3131
new_width = int(new_height * aspect_ratio)
3232

3333
# Scale down the image while preserving the aspect ratio
34-
scaled_image = image.resize((new_width, new_height), Image.ANTIALIAS)
34+
scaled_image = image.resize((new_width, new_height), Image.LANCZOS)
3535

3636
# Create a new blank image with the desired dimensions
3737
new_image = Image.new("RGB", (width, height), "white")

0 commit comments

Comments
 (0)