Math Structures: Matrices, Vectors, and Case Systems
In Corca, structures are not formatting elements. They are containers that hold expressions. You can edit, resize, and reorganize them without breaking the surrounding math. Existing values remain intact when the structure changes.
Matrices
A matrix is a rectangular arrangement of numbers or expressions:
Creating a matrix
You can create a matrix using natural typing or structural insertion. For example, typing matrix produces a two-by-two matrix:
Each box represents an editable cell where you can enter numbers, variables, or expressions.
Another way, is just open parentheses and start typing. Shift+Space adds a new column, Shift+Enter adds a new line.
Resizing a matrix
Rows and columns can be inserted or removed without rewriting the matrix. For example, adding a column into the matrix
Vectors
Vectors can be represented as rows or columns and are commonly used in coordinate systems, physics, and machine learning.
Column vectors
A column vector is written as a vertical list of elements. Example:
Row vectors
A row vector is written as a horizontal list of elements. Example:
Case system
A system of equations groups multiple equations into a single structure. This format is commonly used to represent constraints, relationships, and simultaneous equations:
Each equation remains editable and aligned automatically.
To create a system of equations in Corca, just type Cases System and choose the one from suggestions.
Cases environments
Cases structures represent piecewise definitions. They are commonly used to define functions that behave differently under different conditions.
Example:
Each branch remains editable and aligned automatically.
Previous: Integrals | Next: Inequalities |