Skip to content

Instantly share code, notes, and snippets.

@justaguywhocodes
Last active April 7, 2022 21:56
Show Gist options
  • Save justaguywhocodes/a366ba1535c9895d79fb354c9047b562 to your computer and use it in GitHub Desktop.
Save justaguywhocodes/a366ba1535c9895d79fb354c9047b562 to your computer and use it in GitHub Desktop.
An algorithm that describes obtaining the length of a water cistern.
A cistern.
The height is 3.33, and a volume of 27.78 has been excavated.
The length exceeds the width by 0.83.
You should take the reciprocal of the height, 3.33, obtaining 0.3.
Multiplay this by the volume, 27.78, obtaining 8.33.
Take half of 0.83 and square it, obtaining 0.17.
Add 8.33 and you get 8.51.
The square root is 2.92.
Make two copies of this, adding to the one 0.42 and subtracting from the other.
You find that 3.33 is the length and 2.5 is the width.
This is the procedure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment