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 x x or π pi it is not just the letters "x" or "π" it is nodes—mathematical objects that you're going to work with.

Numbers

Numbers represent numeric values used in calculations. You enter numbers directly from the keyboard. No special commands are required.

Examples:

5 5

12 12

3.14 3.14

-8 negative 8

0 0

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:x=3 x equals 3

Creating a variable

To create a variable in Corca:

  1. Click where you want the variable to appear

  2. Type the letter or name you want, for example x or velocity

  3. A suggestion list appears. Choose the variable you want from that list

  4. Press Enter to insert it as a variable object

For a single-letter variable such as x x, the usual shortcut is: type 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 x

  • t1 t sub 1

  • masstotal mass sub total

  • pinitial p sub 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

The text fields are grouped in one block in the panel, with the color selector below them, and decorators are grouped into three dropdowns plus a toggle.

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

g=9.81 g equals 9.81

This object can be treated as a constant. Use it in an expression:

h⁡(t)=12⁢g⁢t2 h of t equals one half g t squared

Variable dependencies

Expressions can depend on other variables. Corca tracks these relationships automatically.

a=2 a equals 2

b=3 b equals 3

c=a+b c equals a plus b

c= c equals

Press Tab.

c=5 c equals 5

Change:

a=4 a equals 4

Recompute:

c= c equals

Press Tab.

c=7 c equals 7

Indexed variables

Variables can include indices. Indices help distinguish related values.

Examples:

  • x1 x sub 1

  • x2 x sub 2

  • xtotal x sub 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