Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

SwitchSlide: Difference between revisions

From GameBrew
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
|author=WompaStompa
|author=WompaStompa
|lastupdated=2021/11/22
|lastupdated=2021/11/22
|type=Other Apps
|type=Math
|version=v0.1.1
|version=0.1.1
|license=Mixed
|license=Mixed
|download=https://dlhb.gamebrew.org/switchhomebrews/Switchslidenx.7z
|download=https://dlhb.gamebrew.org/switchhomebrews/switchslidenx.7z
|website=https://github.com/WompaStompa/SwitchSlide
|website=https://github.com/WompaStompa/SwitchSlide
|source=https://github.com/WompaStompa/SwitchSlide
|source=https://github.com/WompaStompa/SwitchSlide

Latest revision as of 06:08, 12 July 2023

SwitchSlide
Switchslidenx.png
General
AuthorWompaStompa
TypeMath
Version0.1.1
LicenseMixed
Last Updated2021/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

How to use a slide rule.

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

switchslidenx4.png

switchslidenx5.png

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.

External links

Advertising: