Skip to content

Commit

Permalink
Binet's formula and thin lens equation
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlinxc committed Jan 7, 2025
1 parent a642955 commit cb5c589
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
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.

## Features:
- 94 formulas and counting (we gotta pump those numbers up)
- 96 formulas and counting (we gotta pump those numbers up)
- The search bar is in focus on site load for quick searching
- The / key can be used to open the search on any page
- LaTeX can be copied by clicking on it on any formula's page
Expand Down
22 changes: 22 additions & 0 deletions content/formulas/binets-formula/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: "Binet's Formula"
description: "The closed form formula for calculating the n-th Fibonacci number."
summary: "The closed form formula for calculating the n-th Fibonacci number."
tags: ["math"]
date: 2025-01-06
latex: "F_n = \\frac{\\left(\\frac{1+\\sqrt{5}}{2} \\right)^n - \\left(\\frac{1-\\sqrt{5}}{2} \\right)^n}{\\sqrt{5}}"
---

{{< katex >}}

Binet's formula allows you to calculate the n-th Fibonacci number, \\( \small F_n \\), with a closed form solution. It is as follows:

$$ F_n = \frac{\left(\frac{1+\sqrt{5}}{2} \right)^n - \left(\frac{1-\sqrt{5}}{2} \right)^n}{\sqrt{5}} $$

Where

* \\( \small n \\) is the index of the Fibonacci number you want to calculate.

## Sources

- [Art of Problem Solving](https://artofproblemsolving.com/wiki/index.php/Binet%27s_Formula)
Binary file added content/formulas/binets-formula/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions content/formulas/thin-lens-equation/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: Thin Lens Equation
description: "The equation for thin lenses relating focal length, object distance and image distance."
summary: "The equation for thin lenses relating focal length, object distance and image distance."
tags: ["physics", "optics"]
date: 2025-01-06
latex: \frac{1}{f} = \frac{1}{d_o} + \frac{1}{d_i}
---

{{< katex >}}

For light passing near the optical axis of a thin lens, the lens equation relates the focal length of the lens, the object distance, and the image distance. The equation is given by:

$$ \frac{1}{f} = \frac{1}{d_o} + \frac{1}{d_i} $$

Where

* \(\small f\) is the focal length of the lens,
* \(\small d_o\) is the object distance, and
* \(\small d_i\) is the image distance.

All distances are measured from the lens, and the distances and focal length can be positive or negative. A positive focal length indicates a converging lens, while a negative focal length indicates a diverging lens. If the image distance is positive, the image is real and on the opposite side of the lens from the object. If the image distance is negative, the image is virtual and on the same side of the lens as the object.

## Sources

- [HyperPhysics](http://hyperphysics.phy-astr.gsu.edu/hbase/geoopt/lenseq.html)
Binary file added content/formulas/thin-lens-equation/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cb5c589

Please sign in to comment.