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
(Created page with "{{Infobox Switch Homebrews |title=SwitchSlide |image=switchslideswitch.png |description=Like a slide rule, but for Switch. |author=WompaStompa |lastupdated=2021/11/22 |type=Other Apps |version=v0.1.1 |license=Mixed |download=https://dlhb.gamebrew.org/switchhomebrews/switchslideswitch.7z |website=https://github.com/WompaStompa/SwitchSlide |source=https://github.com/WompaStompa/SwitchSlide |donation= }} {{#seo: |title=Switch Homebrew Apps (Other Apps) - GameBrew |title_mod...")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox Switch Homebrews
{{Infobox Switch Homebrews
|title=SwitchSlide
|title=SwitchSlide
|image=switchslideswitch.png
|image=Switchslidenx.png
|description=Like a slide rule, but for Switch.
|description=Like a slide rule, but for Switch.
|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/switchslideswitch.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
|donation=
|donation=
}}
}}
{{#seo:
|title=Switch Homebrew Apps (Other Apps) - GameBrew
|title_mode=append
|image=switchslideswitch.png
|image_alt=SwitchSlide
}}
{{cleanup|article|Needs cleanup}}
Like a slide rule, but for Switch.
Like a slide rule, but for Switch.


==Media==
Based on switchbrew's [https://github.com/switchbrew/switch-examples/blob/master/graphics/simplegfx/source/main.c simplegfx example] and [https://github.com/switchbrew/switch-examples/blob/master/hid/touch-screen/source/main.c touch-screen example].
<youtube></youtube>
 
==User guide==
===Decimal scale===
[https://www.sliderulemuseum.com/SR_Class/OS-ISRM_SlideRuleSeminar.pdf How to use a slide rule.]
 
The scales from top to bottom are:


1. Double Logarithmic (1 to 10 to 100).<br>
2. Folded Single Logarithmic with index at Pi (π to 10, 10 = 1, 1 to π).<br>
* Blue line denoting boundary between slide and top stator.
3. Folded Single Logarithmic with index at Pi (π to 10, 10 = 1, 1 to π).<br>
4. Red Inverse Single Logarithmic (10 to 1).<br>
5. Single Logarithmic (1 to 10).<br>
* Blue line denoting boundary between slide and bottom stator.
6. Single Logarithmic (1 to 10).<br>
7. Linear (0 to 1).<br>
===Binary scale===
The scales from left to right are:
1. Single Logarithmic (1 to 2).<br>
*Blue line denoting boundary between slide and left stator.
2. Single Logarithmic (1 to 2).<br>
3. Red Inverse Logarithmic (2 to 1).<br>
*Blue line denoting boundary between slide and right stator.
4. Red Inverse Logarithmic (2 to 1).<br>
5. Double Logarithmic (1 to 2 to 4).<br>
===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==
==Screenshots==
https://dlhb.gamebrew.org/switchhomebrews/switchslideswitch-01.png
https://dlhb.gamebrew.org/switchhomebrews/switchslidenx4.png
https://dlhb.gamebrew.org/switchhomebrews/switchslideswitch-02.png
 
https://dlhb.gamebrew.org/switchhomebrews/switchslideswitch-03.png
https://dlhb.gamebrew.org/switchhomebrews/switchslidenx5.png
https://dlhb.gamebrew.org/switchhomebrews/switchslideswitch-04.png
https://dlhb.gamebrew.org/switchhomebrews/switchslideswitch-05.png
https://dlhb.gamebrew.org/switchhomebrews/switchslideswitch-06.png
https://dlhb.gamebrew.org/switchhomebrews/switchslideswitch-07.png
https://dlhb.gamebrew.org/switchhomebrews/switchslideswitch-08.png


==Changelog==
==Known issues==
'''v.1.0'''
*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.
* First Release.
*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 ==
== External links ==
* Gbatemp - https://github.com/WompaStompa/SwitchSlide
* GitHub - https://github.com/WompaStompa/SwitchSlide
* Github - https://github.com/WompaStompa/SwitchSlide
* Reddit -

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: