More actions
SwitchSlide | |
---|---|
General | |
Author | WompaStompa |
Type | Math |
Version | 0.1.1 |
License | Mixed |
Last Updated | 2021/11/22 |
Links | |
Download | |
Website | |
Source | |
Like a slide rule, but for Switch.
Based on switchbrew's simplegfx example and touch-screen example.
User guide
Decimal scale
The scales from top to bottom are:
1. Double Logarithmic (1 to 10 to 100).
2. Folded Single Logarithmic with index at Pi (π to 10, 10 = 1, 1 to π).
- Blue line denoting boundary between slide and top stator.
3. Folded Single Logarithmic with index at Pi (π to 10, 10 = 1, 1 to π).
4. Red Inverse Single Logarithmic (10 to 1).
5. Single Logarithmic (1 to 10).
- Blue line denoting boundary between slide and bottom stator.
6. Single Logarithmic (1 to 10).
7. Linear (0 to 1).
Binary scale
The scales from left to right are:
1. Single Logarithmic (1 to 2).
- Blue line denoting boundary between slide and left stator.
2. Single Logarithmic (1 to 2).
3. Red Inverse Logarithmic (2 to 1).
- Blue line denoting boundary between slide and right stator.
4. Red Inverse Logarithmic (2 to 1).
5. Double Logarithmic (1 to 2 to 4).
Notes
Take advantage of the power of iteration to get increasingly accurate results. For example, say you wanted to know 590÷101.
- Estimate what the answer should be. 590 is about 600 and 101 is about 100, so 590÷101 should be about 6.
- Use the slide rule to get an answer of about 5.84.
- 5.84×101 = 589.84. This means our error is (590-589.84)÷101 = 0.16÷101.
- Use the slide rule to evaluate 0.16÷101 to be about 0.001584.
- Add the error correction to our first calculation to get 590÷101 = 5.841584.
- 5.841584×101 = 589.999984. If this still isn't accurate enough for what you're doing, iterate again. In this case though, you could just notice that the next iteration would be a power of 10 times a previous iteration, meaning you've already found the repeating decimal expansion.
Controls
Plus - Go back to HBMenu
Touchscreen - Move the slide/hairline
A - Switch between moving the slide and hairline
B - Reset the slide position
X - Reset the hairline position
Y - Switch between the different scales (decimal and binary)
Screenshots
Known issues
- Slowly sliding your finger horizontally across the screen is kinda jittery and makes lining up your calculation a bit of a pain. To counter this, slide at a normal speed and a steep vertical angle. The vertical component of the slide will effectively just get ignored but the small horizontal component will always be accounted for.
- The scales won't line up perfectly when slid relative to one another since the gradations were only aligned with the nearest pixel. So for example, the 3.4 line on the decimal scale would go at x position 1280×log₁₀(3.4) = 680.293, however it was placed at x coordinate 680. They should all be close enough to the true value that the power of estimation will give you accurate enough results.