Numbers, Variables, and Constants
In Corca, numbers, constants, and variables are not just plain text. Each one is a distinct object that you create, it can be edited, referenced, reused, and connected to other expressions throughout the document. We call these objects nodes. So when you see
Numbers
Numbers represent numeric values used in calculations. You enter numbers directly from the keyboard. No special commands are required.
Examples:
Numbers behave like standard mathematical objects. They can be edited in place and used inside expressions, for example:
Variables
A variable is a named mathematical object that you insert into the document and then reuse in expressions. In Corca, creating a variable means inserting a variable object, not just typing plain text:
Creating a variable
To create a variable in Corca:
Click where you want the variable to appear
Type the letter or name you want, for example
xorvelocityA suggestion list appears. Choose the variable you want from that list
Press Enter to insert it as a variable object
For a single-letter variable such as x, then press Enter
After that, the variable behaves as a real mathematical object. You can use it in equations, select it, and edit its properties in the right panel
Examples of variable names:
x (t_1) (mass_total) (p_initial)
Editing variables
You can modify variable properties at any time using the right panel. Select the variable, and its settings appear automatically.
Editable properties
Property | Description |
|---|---|
Name | Variable identifier |
Symbol | Displayed symbol |
Type | Variable, function, or constant |
Argument | Function parameter behavior |
Indexes | Subscript or superscript labels |
Labels | Additional annotations |
Color | Visual identification |
Changes apply immediately to the selected object.
Variables and constants
Variables and constants are created in the same way. The difference is conceptual:
Object type | Typical use |
|---|---|
Variable | Value that may change |
Constant | Fixed quantity or parameter |
This object can be treated as a constant. Use it in an expression:
Variable dependencies
Expressions can depend on other variables. Corca tracks these relationships automatically.
Press Tab.
Change:
Recompute:
Press Tab.
Indexed variables
Variables can include indices. Indices help distinguish related values.
Examples:
(x_1) (x_2) (x_total)
Just type your variable and then add _ and the index. Or use the right panel
Common use cases include sequences, datasets, and time-based values.
Objects panel
All variables appear in the Objects panel. The panel provides a structured overview of the objects used in the document.
Common uses
Action | Result |
|---|---|
Review variables | Understand document structure |
Rename variable | Update references |
Change color | Improve readability |
Modify type | Convert variable or constant |
The panel helps maintain clarity in complex documents.
Deleting variables
You can remove a variable from the document. After deletion:
dependent expressions may become undefined
results may require recomputation
Next: Symbols |