First Steps
SpeedCrunch is designed to be used via the keyboard. While an on-screen keypad is available, it defaults to the Basic layout. The powerful keyboard interface is the recommended way to use SpeedCrunch to get the most out of it. The keypad layout can be configured from: .
Note All examples in this manual use a period ( |
When starting SpeedCrunch for the first time, the interface may thus seem a little plain. Don’t be fooled, it can easily be customized. At the bottom edge of the window, you see the the input bar, also called the editor, with a blinking cursor showing that it is ready to accept keystrokes. To try out SpeedCrunch, type:
1.234 + 7.89
|
then hit Enter to evaluate the expression. The result (along with the expression you just entered) will be displayed at the top of window:
1.234 + 7.89
= 9.124
|
This region (called the result window) not only shows the result of your last calculation, it is a complete browsable history. Any previous input or result can be recalled by double-clicking the corresponding line.
Let’s try this out. First, perform some more calculations so that more than one entry is displayed in the result window:
54*4.514 + 57
= 300.756
54*(4.514 - 5.7)
= -64.044
|
Note how multiplication (*) takes precedence over addition (+) unless parentheses are used to specify a particular order of evaluation. If you now wish to continue working with one of the results, double-click e.g. the line = 300.756. The input bar will be populated with this result. Similarly, you can also quickly recall previous input by double-clicking them in the result history. Alternatively, depending on , you can use the Up and Down arrow keys on your keyboard to recall previous expressions, or use the mouse wheel for the same effect (the mouse cursor must be hovering over the editor for this to work, otherwise the result window will be scrolled).
To continue the computation directly from the previous result, you can use the special variable ans which always holds the result of the last entry in the history. Try this:
2+3 ? By the way, you can use question marks for comments.
= 5
7*ans ? 'ans' is now equal to 5
= 35
ans + 3
= 38
|
You can also write comment-only entries. Any line whose first non-space character is ? is treated as a comment and stored in the history:
? start algorithm
? this comment is also valid
|
As you can see, ans provides a quick and easy way to access the previous result. Sometimes,
SpeedCrunch can even insert ans for you: When you start a new expression with an operator (e.g. +, -, *, /, ^), ans will be prepended automatically. [1] To try it out, type 7 Enter +3 Enter.
SpeedCrunch expands this as follows:
7
= 7
ans+3
= 10
|
SpeedCrunch comes with a number of mathematical constants like π that are available by typing their name:
pi
= 3.14159265358979323846
pi*1.2^2
= 4.52389342116930226339
|
Let us finish this short introduction with a word about functions. SpeedCrunch comes with an extensive list of built-in mathematical functions which can be accessed by simply typing their name in the editor followed by any parameters (also called arguments) in parentheses:
sqrt(144)
= 12
|
The function sqrt() calculates the square root of its argument. Some functions require or accept more than one argument. In that case, separate them with a semicolon (;).
If you leave a trailing semicolon while typing, SpeedCrunch treats it as an incomplete final argument and still evaluates the expression (for example average(2;3;4;) and average(2;3;4;).
Warning To repeat: In contrast to many programming languages, parameters in SpeedCrunch are separated by a semicolon! |
An example is the average() function:
average(12;34;56)
= 34
|
This is already enough to use SpeedCrunch effectively. Try it out for yourself! Alternatively, read on to learn about its more advanced features.
Footnotes