Parts of the Calculator

The Calculator has several parts: a keypad, an input line, a preview area, and a group of buttons for inserting special mathematical elements.

Keypad

Click the buttons in the Calculator’s keypad to insert numbers, decimal points, operators, and parentheses into your calculation or function. Instead of clicking one of these buttons, you can also type the corresponding key on your computer’s keyboard. (Use the / key—the forward slash—on the keyboard for division.)

The x key is present only when you’re defining a function; it changes to y, θ, or r depending on the form of the equation.

Click the left-arrow key on the keypad, or the Backspace key (Windows) or Delete key (Macintosh) on the keyboard, to delete the last item you typed. If you’re using the Calculator to define a function, you can click the key labeled x to enter the value of the independent variable.

Input Line

The input line displays each element you insert into the calculation or function as you enter it. Refer to the input line to see exactly what you’ve entered. You can also click in the input line or press the right- or left-arrow key on the keyboard to change the insertion point and add new numbers, operators, and so forth in the middle of an existing expression.

If the input line does not form a valid mathematical expression, the portion of the input line up to the first error is shown in black. The portion following the first error appears in red.

Preview Area

The preview area shows a mathematically formatted preview of the input line when it contains a valid expression. Use the preview to be sure that you’ve entered the desired calculation or function correctly—that you have the parentheses in the right places and that you have the correct order of operations.

Pop-up Menus

Depending on whether you’re defining a calculation or a function, either three or four pop-up menus appear. The last of these, the Equation pop-up menu, appears only when you’re defining or editing a function rather than a calculation.

You can click on an existing measurement or calculation in the sketch to insert it into the Calculator.

Values: This pop-up menu allows you to enter the value of any selected measurement in the sketch, to insert a new parameter, or to insert the value of the constant π or e. The values that appear in this menu include measurements or calculations that were selected in the sketch when the Calculator was opened. If you want to use a value from the sketch that doesn’t appear in this menu, click on the value in the sketch to insert it into your expression. (If the value is hidden behind the Calculator, drag the Calculator by its title bar to move it out of the way and then click on the value.)

When you edit a calculation or function, you can insert only values that don’t depend on the object you’re editing. In other words, if you’re editing a calculated value 2 · AB, and your sketch has another calculation which uses this result to calculate 2 · AB + 2 · CD, you cannot insert the value of the second calculation into the first.

If you’re defining a function, you can also use the Values pop-up menu to insert the value of the independent variable x, y, r, or θ.

You can also click on an existing function that you’ve defined previously in the sketch to insert it into the Calculator.

 

Functions: This pop-up menu allows you to use in your expression any selected function you’ve already defined in the sketch, or to use any of Sketchpad’s standard functions. Sketchpad’s standard functions include the trigonometric functions, the inverse trig functions, and these additional functions:

abs      Absolute value

sqrt      Square root

ln         Natural logarithm (base e)

log       Common logarithm (base 10)

The signum function is especially useful in creating a calculation that makes a decision based on the value of a variable, measurement, or parameter.

sgn      Signum (Returns +1, 0, or –1, depending on whether its argument is positive, zero, or negative.)

round   Round (Rounds its argument to the nearest whole number.)

trunc    Truncate (Truncates its argument by removing the fractional part. For example, trunc (2.6) = 2, and trunc (–7.8) = –7.)

Units: This pop-up menu allows you to insert any desired angle or distance unit (degrees, radians, inches, cm, or pixels). A unit must be attached to a number, so the Units menu is enabled whenever you’ve just inserted a numeric constant—either an ordinary number or one of the constants π and e.

See also
Plot Function

New Parameter

Equation: This pop-up menu allows you to set the form in which the function appears. By setting the form of the function, you determine whether the independent variable is x, y, θ, or r. If you plot the function, the form you set here determines how the function plot appears. Choose f (x ) or = f (y ) for a rectangular plot; or choose r = f (θ ) or θ = f (r) for a polar plot.

See also
Plot Function

Grid Form