Ket maintains three distinct representations of an equation.
Equations are displayed to the user and may be exported in images in conventional mathematical notation.
Internally it is most efficient to represent the equation as a Tree structure which standardizes direction commands.
But when writing equation fragments or saving them to file, a custom markdown language is used which merges markdown, LaTeX and plain text mathematical notations as applicable.

Conventional mathematical notation is represented by a series of boxes within boxes each containing letters and lines to denote what function, operation, variable or value they represent.
After each edit, equations are converted to this form and rendered.

However, edit commands represent the equation differently and keyboard direction commands reflect this.
Analogous to a filesystem hierarchy of files and folders within folders, each equation is represented as a Tree structure.
Each equation in Ket is a tree of operations and functions (tree branches) and variables and values (tree leaves).

The file format consists of its own, non-standard markdown language.
Also, when editing, any equation fragments are typed in plain text and converted to the tree.
The equation is represented in memory and converted to a tree map in order to display it to the user.
The file format is plain text which is converted to and from a tree when files are loaded and saved.
Ket maintains three distinct representations of an equation. Equations are displayed to the user and may be exported in images in conventional mathematical notation. Internally it is most efficient to represent the equation as a Tree structure which standardizes direction commands. But when writing equation fragments or saving them to file, a custom markdown language is used which merges markdown, LaTeX and plain text mathematical notations as applicable.
Conventional mathematical notation is represented by a series of boxes within boxes each containing letters and lines to denote what function, operation, variable or value they represent. After each edit, equations are converted to this form and rendered.
However, edit commands represent the equation differently and keyboard direction commands reflect this. Analogous to a filesystem hierarchy of files and folders within folders, each equation is represented as a Tree structure. Each equation in Ket is a tree of operations and functions (tree branches) and variables and values (tree leaves).
The file format consists of its own, non-standard markdown language. Also, when editing, any equation fragments are typed in plain text and converted to the tree. The equation is represented in memory and converted to a tree map in order to display it to the user. The file format is plain text which is converted to and from a tree when files are loaded and saved.
Ket (software)