Functions
In Corca, a function is a structured mathematical object with a symbol and one or more arguments. Functions behave like reusable components. They can be evaluated, modified, and referenced throughout a document.
Functions are not plain text. Their arguments, parameters, and formatting remain editable at all times.
Creating a function
You create a function by typing its name and selecting it from suggestions. Type sin, select Sine from suggestions. Result:
Built-in functions
Common mathematical functions are available by default.
Function | Example | Meaning |
|---|---|---|
Sine | Trigonometric function | |
Cosine | Trigonometric function | |
Tangent | Trigonometric function | |
Logarithm | Logarithmic function | |
Natural log | Log base | |
Exponential | Exponential function | |
Square root | Root function |
The full list is here.
Functions behave consistently with standard mathematical definitions.
Defining your own function
You can define a custom function using assignment:
The function remains linked to its definition.
Evaluating a function
Functions can be evaluated directly:
Press Tab.
Result:
Evaluation uses the current function definition.
Multiple arguments
Functions can accept more than one argument:
Editing function properties
You can modify function details using the right panel. Editable properties include
Property | Description |
|---|---|
Symbol | Function name |
Arguments | Number of inputs |
Labels | Subscripts or superscripts |
Type | Function behavior |
Parentheses visibility | Show or hide brackets |
Color | Visual identification |
Changes apply immediately to the function.
Parentheses behavior
Function parentheses are managed automatically.
Parentheses may be hidden in simple cases as
You can control parentheses visibility manually from the right panel.
Nested functions
Functions can be used inside other functions:
Each function remains independently editable.
Functions in imported content
Functions imported from LaTeX or other formats are converted into structured objects. Example input:
\sin(x)You get a structured sine function:
Previous: Powers and Roots | Next: Sums and Products |