Getting Started

If you don't know how to use SpeQ, read this page. It contains step-by-step examples to familiarize you with the program. The following topics are explained.

When you open the program you'll see the following screen. The interface has three main parts. In the middle you see the Workarea, here you can enter your calculations. Left from the workarea you see the Memorylist where all variables and functions that are in memory are listed. Right from the Workarea you see the Functionstree, this contains an overview of all available functions and constants. If you want you can close the Memorylist and Functionstree, they are not necessary for doing calculations.

screenshot

Back to top

Entering your first calcuation

If the Workarea isn't empty, clear the contents before starting by selecting all text and pressing <DEL>. Type 3*4 in the workarea and press <ENTER>. The answer will appear in blue on the second line. You can insert spaces in the sum if you like, though it isn't necessary.
3 * 4
       Ans = 12
|
The cursor will be on the third line now. Press <ENTER> to go to the next line, then type the next expression (4+5)/2 and press <ENTER> again.
3 * 4
       Ans = 12

(4 + 5) / 2
       Ans = 4.5
|
By pressing <ENTER> somewhere on a line, the line will be evaluated. If you want to split a line you can press <Ctrl+ENTER>. There is one exception: if the cursor is at the start of a line, <ENTER> and <Ctrl+ENTER> work just the other way around.

Back to top

Adding a remark

Now let's add a remark. You can create a remark by starting a line with an apostrophe '.
Type 'This is a remark and press <ENTER>. Remarks are colored green.
3 * 4
       Ans = 12

(4 + 5) / 2
       Ans = 4.5
'This is a remark
|
Back to top

Defining a variable

With SpeQ you can create and use variables. Let's create a variable named Width and assign it the value 5.5. Type Width = 5.5 and press <ENTER>.
3 * 4
       Ans = 12

(4 + 5) / 2
       Ans = 4.5
'This is a remark
Width = 5.5
       Width = 5.5
|
Now you can use the variable Width in future calculations.

Let's clean up the sheet a little bit. Select the first five lines of the sheet and press <DEL>. You can select text by dragging the mouse over it, or by setting the cursor on the first position of the first line, holding the Shift-key down, and using the arrow keys to select the text you want.
3 * 4
       Ans = 12

(4 + 5) / 2
       Ans = 4.5
'This is a remark
Width = 5.5
       Width = 5.5
After deleting the first five lines, set the cursor on the last line. Calculate the square of the variable Width. Type Width^2 and press <ENTER>.
'This is a remark
Width = 5.5
       Width = 5.5
Width ^ 2
       Ans = 30.25
|
Let's add a second variable named Height, and assign it the value 3+5. Type Height=3+5 and press <ENTER>.
'This is a remark
Width = 5.5
       Width = 5.5
Width ^ 2
       Ans = 30.25
Height=3+5
       Height = 8
|
If you want to hide the result of an expression, end the line with a semicolon. Type a semicolon at the end of the line Height=3+5 and press <ENTER>. Do the same with the line Width = 5.5. The answer lines will then be hidden.
'This is a remark
Width = 5.5;
Width ^ 2
       Ans = 30.25
Height = 8;
|
You can see a list of variables currently in memory in the Memorylist. You can show or hide this window by pressing <F9> or from the menu View, Memorylist.

Back to top

Using scientific functions

Now let's use some built-in functions. Calculate the square root of 25.
First press <ENTER> to add an empty line and keep the sheet orderly. Then type sqrt(25) and press <ENTER>.
'This is a remark
Width = 5.5;
Width ^ 2
       Ans = 30.25
Height = 8;

Sqrt(25)
       Ans = 5
|
You can use functions anywhere in expressions. First type 2*Log10(1000) and press <ENTER>. Then type (4-2)*Log10(5000/(8-3)) and press <ENTER>.
'This is a remark
Width = 5.5;
Width ^ 2
       Ans = 30.25
Height = 8;

Sqrt(25)
       Ans = 5
2 * Log10(1000)
       Ans = 6
(4 - 2) * Log10(5000 / (8 - 3))
       Ans = 6
|
Now we'll use a sine function. Be sure the Angle mode at bottom left is set to Rad (radians). Type Sin(0.25*pi) and press <ENTER>. This should be equivalent to 1/sqrt(2), because 0.25*Pi is an eighth of a circle (45 degrees). Type 1/sqrt(2) and press <ENTER>.
'This is a remark
Width = 5.5;
Width ^ 2
       Ans = 30.25
Height = 8;

Sqrt(25)
       Ans = 5
2 * Log10(1000)
       Ans = 6
(4 - 2) * Log10(5000 / (8 - 3))
       Ans = 6
Sin(0.25 * Pi)
       Ans = 0.7071067812
1 / Sqrt(2)
       Ans = 0.7071067812
|
You can find a list of all built-in functions in the Functionstree. You can show or hide the Functionstree by pressing <F8>, or go to menu View, Show Functions. The Functionstree will appear to the right of the workarea.

Make the Functionstree visible. Type 4+5 in the sheet and select this line.
'This is a remark
Width = 5.5;
Width ^ 2
       Ans = 30.25
Height = 8;

Sqrt(25)
       Ans = 5
2 * Log10(1000)
       Ans = 6
(4 - 2) * Log10(5000 / (8 - 3))
       Ans = 6
Sin(.25 * Pi)
       Ans = 0.7071067812
1 / Sqrt(2)
       Ans = 0.7071067812
4+5
Now search for the function Sqrt( ) in the Functionstree. You can find this item under Functions, Arithmetic. Double-click in the functionslist on Sqrt(x). The function is now added to the sheet, holding the value 4+5. Press <ENTER> to calculate this sum.
'This is a remark
Width = 5.5;
Width ^ 2
       Ans = 30.25
Height = 8;

Sqrt(25)
       Ans = 5
2 * Log10(1000)
       Ans = 6
(4 - 2) * Log10(5000 / (8 - 3))
       Ans = 6
Sin(.25 * Pi)
       Ans = 0.7071067812
1 / Sqrt(2)
       Ans = 0.7071067812
Sqrt(4 + 5)
       Ans = 3
|
Back to top

Defining and using functions

Next we'll define a function. First clear the current sheet. Select all text and press <DEL>. Type Y(x)=2*x^2, so Y(x) will give two times the square of the value x. Press <ENTER>.
Y(x) = 2 * x^2
       Y(x) is defined
|
As with variables, you can see all defined functions listed in the Memorylist. Use the function Y(x). Type Y(4) and press <ENTER>.
Y(x) = 2 * x^2
       Y(x) is defined
Y(4)
       Ans = 32
|
You can let a function depend on more than one variable. Press <ENTER> to create an empty line. Type Area(W,H)=W*H and press <ENTER>. This function will calculate the area of a rectangle with a width W and a height H.
Y(x) = 2 * x^2
       Y(x) is defined
Y(4)
       Ans = 32

Area(W,H) = W * H
       Area(W,H) is defined
|
Now use the function to calculate the area of a rectangle with a width 5.5 meters and a height of 3 meters. Type Area(5.5, 3) and press <ENTER>.
Y(x) = 2 * x^2
       Y(x) is defined
Y(4)
       Ans = 32

Area(W,H) = W * H
       Area(W,H) is defined
Area(5.5, 3)
       Ans = 16.5
|

Back to top

Plotting a graph

You can plot graphs with the Plot function. Press <ENTER> to create another empty line, then type Plot(x^2 - 3) and press <ENTER>. A Figure will open where the function x^2-3 will be plotted. You can trace the function by clicking on the graph and using the arrow keys. You can easily move and zoom the graph with <Ctrl>+<LeftMouseButton> and <Ctrl>+<RightMouseButton>.
Go back to the workarea (don't close the figure) and type Plot(Sin(x)) on the next line.
Y(x) = 2 * x^2
       Y(x) is defined
Y(4)
       Ans = 32

Area(W,H) = W * H
       Area(W,H) is defined
Area(5.5, 3)
       Ans = 16.5

Plot(x^2 - 3)
       Plot done
Plot(Sin(x))
       Plot done
|
The function Sin(x) will be plotted in figure 1, together with the first function. When tracing the functions, the tracepoint will automatically snap to important properties like intersections. You can read more about plotting graphs on the Plot page.

Figure


Back to top

Saving your sheet

Finally, let's save the sheet. Go to Menu File and choose Save (or press <Ctrl+S>). Choose the directory you want to save the sheet in. Type a name for the sheet, myfirstsheet for example, and click on the Save button (or press <ENTER>).

You can quit SpeQ by clicking the close button at the top right of the screen. If needed, SpeQ will ask if you want to save your sheet.