CALC 1 Home Documentation Home Contact

 

CALC 1 Key Editor

The Key Editor is similar adding a number in the Contacts app that comes with your iPhone. You need a label and formula instead of a name and phone number.

You can also use the Key Editor to view the formulas of a key to better understand it. It is a good source of documentation.

key editor

 

To edit a key:

  1. Display the calculator list.
  2. Select the blue "more info" button chevron button to the right of the calculator name to display the calculator editor. The calculator editor looks like the calculator, but there is no display.
  3. Select the key you want to edit. This will display the key editor. The key without any "modifiers" (shift, STO, RCL) is different from the key when shift, STO or RCL has been pressed first. Some keys (0-9, ENTER, +/-, EE, del, =f, =, ) cannot be edited.
  4. Optionally, iPhone users can enable the "Key Editing from Calculators" option and then, from any calculator, swipe the key (right swipe gesture).

The top "LABELS AND HINTS" section of the key editor screen contains the following fields:

  1. Label: This is the key label that you see on the key. It needs to bee short enough to fit on the key.
  2. Hint: The hint is the text that is displayed when the key is held.
  3. Insert:
  4. Undo: This controls the undo support for this key.
  5. History: This controls the history support for this key.

The bottom "FORMULAS" section contains the formulas that will be evaluated when the key is pressed.

When you tap a key in CALC 1 up to 5 formulas are evaluated and the results placed in the stack. When you edit or create a key, you can edit or create the formulas that are evaluated.

To edit any of the fields, select the field to display the editor screen.

Formulas are evaluated in this order:

  1. Last x Formula
  2. x Formula
  3. y Formula
  4. z Formula
  5. t Formula

The results of the formulas are placed in their respective register. (rgX(), rgY(), rgZ(), rgT())
If there is no formula, the value of the register is unchanged.

Explanation of how the "Insert" field is used for different calculation modes.

For the √ key shown in the screen shot at the top of this page:

In RPN calculation mode, the "Insert" field is ignored and the formulas are evaluated as follows:

  1. The Last x Formula is evaluated and simply puts the current value of rgX() into lastRgx().
  2. The "x Formula" is evaluated and the results are entered in the rgX() value.
  3. Since there are no y, z or t formulas, those values are unchanged.

In ALG calculation mode, the "sqrt(" text is inserted into the current formula and the FORMULAS section are ignored.

In CHN calculation mode, the formulas are executed as in RPN calculation mode.
During a pending formula the currently entered number is the rgX() value. See the "Add a square root (or other unary function)" example in Calculations Using the Chain (CHN) Calculation Mode.

More Examples

CALC 1 has hundreds of keys that you can look at for examples.
Feel free to contact us using the "Contact" link at the top of every documentation page.

The K key

The K key that stores the operator and right hand value for repetitive calculations has a special Insert field, "selKMode".

This is the first special value insert field that is a "selector". A selector tells CALC 1 to run internal computer code. Selectors are used for the "+/-", "EE", del, "." and other keys but cannot be edited. More selectors may be added in the future to add features and allow users more customization options.