Activities/Sliderule: Difference between revisions

 
(6 intermediate revisions by 3 users not shown)
Line 3: Line 3:
== Where to get Sliderule ==  
== Where to get Sliderule ==  


[http://activities.sugarlabs.org/en-US/sugar/addon/4222 Activity] | [http://git.sugarlabs.org/projects/slideruler/repos/mainline Source]  
[http://activities.sugarlabs.org/en-US/sugar/addon/4222 Activity] | [http://github.com/sugarlabs/slideruler Source]  


== About Sliderule ==
== About Sliderule ==
Line 42: Line 42:
The Custom Slide Toolbar is used to make a custom slide. From left to right:
The Custom Slide Toolbar is used to make a custom slide. From left to right:
* position function of x used to calculate the horizontal position of each mark along the slide or stator (the range of this function should be 0 to 1)
* position function of x used to calculate the horizontal position of each mark along the slide or stator (the range of this function should be 0 to 1)
* result function of x used to read a value from the slide or stator at the cursor or reticule (usually the inverse of the position function)
* label function of x used to calculate a label for each mark (often identity)
* label function of x used to calculate a label for each mark (often identity)
* result function of x used to read a value from the slide or stator (usually the inverse of the position function)
* results label function of x to calculate a label for the results display
* the minimum value of x used in the functions domains
* the minimum value of x used in the functions domains
* the maximum value of x used in the functions domains
* the maximum value of x used in the functions domains
Line 56: Line 55:
In the values shown in the illustration of the Custom Toolbar are used to generate a C (log) slide:
In the values shown in the illustration of the Custom Toolbar are used to generate a C (log) slide:
:the position is determined by ''f''(''x'') = ''log''(''x'', 10)
:the position is determined by ''f''(''x'') = ''log''(''x'', 10)
:the result (the inverse of ''f''(''x'')) is ''f<sup>-1</sup>''(''x'') = ''pow''(10, ''x'')
:the label is ''g''(''x'') = ''x''
:the label is ''g''(''x'') = ''x''
:the result (the inverse of ''f''(''x'')) is ''f<sup>-1</sup>''(''x'') = ''pow''(10, ''x'')
:the result label is ''h''(''x'') = ''x''
:the domain is from 1 to 10
:the domain is from 1 to 10
:the step size is 1/4.
:the step size is 1.


=== The keyboard shortcuts ===
=== The keyboard shortcuts ===
Line 121: Line 119:
=== Square ===
=== Square ===


You use the A slide and D stator to square number. (A is a log-squared scale.) Simply position the reticule of number you want to square on the D stator and read the result off of the A slide. (Remember to properly estimate the proper decimal point for your result.)
You use the A slide and D stator to square number. (A is a log-squared scale.) Simply position the reticule of number you want to square on the D stator and read the result off of the A slide. Remember to properly estimate the proper decimal point for your result. '''Note''': the slide and stator must be aligned in order to calculate the square of a number.


''e''<sup>2</sup> = 7.4
''e''<sup>2</sup> = 7.4
Line 168: Line 166:


== A tutorial ==
== A tutorial ==
[[File:Slideruletute.pdf]] 355 kB
[[File:Slideruletute.pdf]] 355 kB chapter 1


[[File:Slideruletute.odt]] 429 kB (may not display figures in Write)
[[File:Slideruletute.odt]] 429 kB chapter 1 (may not display diagrams in Write)
 
[[File:Slideruletute-ch2.pdf]] 325 kB chapter 2
 
[[File:Slideruletute-ch2.odt]] 287 kB chapter 2, the custom sliderule (may not display diagrams in Writes)


== Just for fun ==
== Just for fun ==
Line 179: Line 181:


You can [https://bugs.sugarlabs.org/query?status=accepted&status=assigned&status=new&status=reopened&component=Sliderule view the open tickets here].
You can [https://bugs.sugarlabs.org/query?status=accepted&status=assigned&status=new&status=reopened&component=Sliderule view the open tickets here].
[[Category:Activities]]