+ All Categories
Home > Documents > Calculatoarele

Calculatoarele

Date post: 17-Jul-2016
Category:
Upload: andreea-c
View: 215 times
Download: 1 times
Share this document with a friend
Description:
Calculatoarele
63
sin cos tan max exp ceil x 2 x! x y rad asin acos atan min ln floor sqrt round 1/x deg 7 8 9 / del 4 5 6 * E 1 2 3 pop 0 . - + push n min max total mean sdev new new +n –n –x random pi e dup exit info new +m –m mem grow
Transcript
Page 1: Calculatoarele

sin cos tan max exp ceil x2 x! xy rad

asin acos atan min ln floor sqrt round 1/x deg

7 8 9 / del

4 5 6 * E

1 2 3 – pop

0 . - + push

n

min

max

total

mean

sdev

new new +n –n

–x random pi e dup exit info

new +m –m mem grow

Page 2: Calculatoarele

The Calculator

This calculator is stack based, which means that one enters values and invokes an action that acts on the value(s) last entered. Subtracting10 from 20 using (–) for instance comes down to clicking:

10 in 20 –

while calculating a sinus (sin) results from entering:

.89 sin

The left column of fields (numbers) shows the Stack. One usespush to push a value on the stack andpop to remove a value. Clickingnew removes them all and thedel button can be used to undo the last entered digit. When a dyadic operation is applied, the top value isused as y. Thegrow key toggles between two different visualizations of the stack.

The stack is considerably larger than the screen representation suggests. In the rare occasion that one encounters the messageexhausted,the amount of stack entries already has totaled far beyond 50 and one probably already has forgotten what the values first entered represent.

The right column of fields reports the statistic calculations. By clicking on the tag, one pushes the value on the Stack. The lower buttonsare used to reset (new), enter (+) and remove (–) values to be taken into account when calculating those statistics.

This document is produced by CONTEXT, a macro package based on TEX. METAPOST graphics, PDF objects and form fields as well asJavaScript code were generated and inserted at run time. I owe many thanks to Philip Taylor for his testing and suggestions.

Hans Hagen, PRAGMA ADE, CONTEXT 18/2/1998

[email protected]

Page 3: Calculatoarele

Calculate the sine of the topmost stack entry.

Page 4: Calculatoarele

Calculate the cosine of the topmost stack entry.

Page 5: Calculatoarele

Calculate the tangent of the topmost stack entry.

Page 6: Calculatoarele

Calculate the arcsine of the topmost stack entry.

Page 7: Calculatoarele

Calculate the arccosine of the topmost stack entry.

Page 8: Calculatoarele

Calculate the arctangent of the topmost stack entry.

Page 9: Calculatoarele

Calculate the square of the topmost stack entry.

Page 10: Calculatoarele

Calculate the square root of the topmost stack entry.

Page 11: Calculatoarele

Calculate the exponential function of the topmost stack entry.

Page 12: Calculatoarele

Calculate the natural logaritm of the topmost stack entry.

Page 13: Calculatoarele

Calculate xy where y is the topmost stack entry.

Page 14: Calculatoarele

Calculate 1/x using the topmost stack entry.

Page 15: Calculatoarele

Add an observation to the statistics.

Page 16: Calculatoarele

Remove an observation from the statistics.

Page 17: Calculatoarele

Reset the statistics.

Page 18: Calculatoarele

Push the number of observations to the stack.

Page 19: Calculatoarele

Push the sum of encountered values to the stack.

Page 20: Calculatoarele

Push the lowest encountered value to the stack.

Page 21: Calculatoarele

Push the highest encountered value to the stack.

Page 22: Calculatoarele

Push the mean value to the stack.

Page 23: Calculatoarele

Push the standard deviation to the stack.

Page 24: Calculatoarele

Negate the topmost stack entry.

Page 25: Calculatoarele

Set the topmost stack entry to the next integer.

Page 26: Calculatoarele

Set the topmost stack entry to the previous integer.

Page 27: Calculatoarele

Set the topmost stack entry to the nearest integer.

Page 28: Calculatoarele

Take the minumum of the two topmost stack entries.

Page 29: Calculatoarele

Take the maximum of the two topmost stack entries.

Page 30: Calculatoarele

Push 2.71828182845905 onto the stack.

Page 31: Calculatoarele

Push 3.14159265358979 onto the stack.

Page 32: Calculatoarele

Convert radians into degrees.

Page 33: Calculatoarele

Convert degrees into radians.

Page 34: Calculatoarele

Generate a random number in the range 0–1.

Page 35: Calculatoarele

Add a digit 0 to the current stack entry.

Page 36: Calculatoarele

Add a digit 1 to the current stack entry.

Page 37: Calculatoarele

Add a digit 2 to the current stack entry.

Page 38: Calculatoarele

Add a digit 3 to the current stack entry.

Page 39: Calculatoarele

Add a digit 4 to the current stack entry.

Page 40: Calculatoarele

Add a digit 5 to the current stack entry.

Page 41: Calculatoarele

Add a digit 6 to the current stack entry.

Page 42: Calculatoarele

Add a digit 7 to the current stack entry.

Page 43: Calculatoarele

Add a digit 8 to the current stack entry.

Page 44: Calculatoarele

Add a digit 9 to the current stack entry.

Page 45: Calculatoarele

Calculate the recursive multiplication of n, n–1, n–2, etc.

Page 46: Calculatoarele

Add a sign to the current stack entry.

Page 47: Calculatoarele

Add a period to the current stack entry.

Page 48: Calculatoarele

Start setting the exponent part of the current stack entry.

Page 49: Calculatoarele

Delete the last entered digit of the current stack entry.

Page 50: Calculatoarele

Erase the memory buffer.

Page 51: Calculatoarele

Add to the memory buffer.

Page 52: Calculatoarele

Substract from the memory buffer.

Page 53: Calculatoarele

Copy the memory buffer to the stack.

Page 54: Calculatoarele

Push a new entry to the stack.

Page 55: Calculatoarele

Remove the topmost entry from the stack.

Page 56: Calculatoarele

Erase the whole stack.

Page 57: Calculatoarele

Duplicate the topmost stack entry.

Page 58: Calculatoarele

Add the two topmost stack entries.

Page 59: Calculatoarele

Subtract the topmost stack entry from the one below.

Page 60: Calculatoarele

Multiply the two topmost stack entries.

Page 61: Calculatoarele

Divide the pre-last stack entry by the topmost one.

Page 62: Calculatoarele

Toggle grow mode, another way of stacking.

Page 63: Calculatoarele

Close this document.


Recommended