en:user:formulas

Two information is necessary to solve a formula

- variables
- formula itself

Variables are usually common for all waypoints, they are stored in cache note.

There could be more waypoints with different formulas, we store formulas in waypoint note.

The cache note has two modes. If there is a pencil in the top right corner, you are editing general note. if there is (X)= in the corner, you are editing variables.

- name and value is separated by colon or equal sign, example A=1 B:3
- variables must me separated by space or line break
- it is possible to assign more letters at a time, example ABC=456

(1) Adjust formula so that the first line of the formula is for the latitude (N/S) and the other for the longitude (E/W)

(2) Open formula solver tapping **Calculate formulas**

Edit formulas to follow basic syntax rules:

- separately calculated groups of digits are enclosed in square brackets [ ]
- supported math operations are add (+), subtract (-), multiply (*), divide (/), power (^) and round bracket
- priority of operators is respected, ie, first to multiply and divide and then add and subtract

Use the **Normalize formulas** to simplify editing:

- replaces outer round brackets with square ones
- removes unnecessary characters
- replaces decimal comma with dot

Now, we can try **Calculate formulas**

en/user/formulas.txt · Last modified: 2013/12/08 20:35 (external edit)