Calculator input methods: Difference between revisions

Content deleted Content added
fix all examples
Line 4:
 
{{main|Reverse Polish Notation}}
 
{| class="wikitable" border="1"
|+ Examples
! Formular
! Key strokes
! Key stroke count
|-
Example: | <math>\sin1 30+ 2 \times \cos 303</math>
; with reverse polish notation:| <code>31</code> <code>0ENTER</code> <code>SIN2</code> <code>3ENTER</code> <code>03</code> <code>COS×</code> <code>×+</code>
| 7
|-
| <math>\sin 30 \times \cos 30</math>
; with algebraic logic:| <code>3</code> <code>0</code> <code>SIN</code> <code>×</code> <code>3</code> <code>0</code> <code>COS</code> <code>=×</code>
| 7
|}
 
== infix logic ==
 
{| class="wikitable" border="1"
|+ Examples
! Formular
! Key strokes
! Key stroke count
|-
| <math>1 + 2 \times 3</math>
; with direct algebraic logic :| <code>SIN</code> <code>3</code> <code>0</code> <code>→2</code> <code>×</code> <code>COS3</code> <code>3+</code> <code>01</code> <code>ENTER=</code>
| 6
|-
| <math>\sin 30 \times \cos 30</math>
| <code>3</code> <code>0</code> <code>SIN</code> <code>×</code> <code>3</code> <code>0</code> <code>COS</code> <code>=</code>
| 8
|}
 
== algebraic logic ==
 
{| class="wikitable" border="1"
|+ Examples
! Formular
! Key strokes
! Key stroke count
|-
| <math>1 + 2 \times 3</math>
| <code>1</code> <code>+</code> <code>2</code> <code>×</code> <code>3</code> <code>=</code>
| 6
|-
| <math>\sin 30 \times \cos 30</math>
| <code>3</code> <code>0</code> <code>SIN</code> <code>×</code> <code>3</code> <code>0</code> <code>COS</code> <code>=</code>
| 8
|}
 
== [[BASIC]] notation ==
Line 40 ⟶ 85:
Other known entry modes are '''Algebraic logic (A.L.)''' which was used in earlier calculators and [[BASIC]] notation which was used BASIC programmable [[Pocket computer|Pocket computers]]. Both can be seen as ancestors to D.A.L.
 
{| class="wikitable" border="1"
Example: <math>\sin 30 \times \cos 30</math>
|+ Examples
! Formular
! Key strokes
! Key stroke count
|-
| <math>1 + 2 \times 3</math>
| <code><code>1</code> <code>+</code> <code>2</code> <code>×</code> <code>3</code> <code>ENTER</code>
| 6
|-
| <math>\sin 30 \times \cos 30</math>
| <code>SIN</code> <code>3</code> <code>0</code> <code>→</code> <code>×</code> <code>COS</code> <code>3</code> <code>0</code> <code>ENTER</code>
| 9
|}
 
Note 1: the <code>→</code> in the 2nd example: most DAL calculators will automatically insert needed <code>(</code> <code>)</code>parenthesis and the <code>→</code> key skips over the <code>)</code>closing parenthesis from the sin operation. Machines equipped with an alphanumeric display will display <tt>SIN(30)×COS(30)</tt> before pressing <code>ENTER</code>.
; with reverse polish notation: <code>3</code> <code>0</code> <code>SIN</code> <code>3</code> <code>0</code> <code>COS</code> <code>×</code>
display <tt>SIN(30)×COS(30)</tt> before pressing <code>ENTER</code>.
; with algebraic logic: <code>3</code> <code>0</code> <code>SIN</code> <code>×</code> <code>3</code> <code>0</code> <code>COS</code> <code>=</code>
; with direct algebraic logic : <code>SIN</code> <code>3</code> <code>0</code> <code>→</code> <code>×</code> <code>COS</code> <code>3</code> <code>0</code> <code>ENTER</code>
 
Note 1: the <code>→</code>: most DAL calculators will automatically insert needed <code>(</code> <code>)</code> and the <code>→</code> skips over the <code>)</code> from the sin operation. Machines equipped with an alphanumeric display will display <tt>SIN(30)×COS(30)</tt> before pressing <code>ENTER</code>.
 
<!--
== Criticism ==
 
As seen in the example above the increased need for <code>(</code> and <code>)</code> results in a larger number of key presses to enter a formula. In the example above: D.A.L. 9 key presses, BASIC: 12 .. 16 key presses, A.L.: 8 key presses, RPN: 7 key presses.
 
-->
 
== References ==
Line 60 ⟶ 108:
 
== External links ==
 
 
[[Category:Calculators]]