# How to Use Math Functions in Calcul.io

Learn function syntax in Calcul.io and work through examples for derivatives, statistics, distance, matrices, trigonometry, and other supported operations.

## Functions

Calcul.io offers plethora of useful functions that you can use in your calculations.

Currently, there's over 200 functions available

[Complete overview of all available functions](https://calcul.io/functions/index.md)

### Math.js Functions

Functions usually take a parameter or more.

```calculio
divide(4,2)
4/2
```

Some functions work only with a text input. Enclose the parameter in quotes to get a proper result.

```calculio
simplify("3 + 2 / 4")
simplify("x + x")
```

### Aggregate Functions

Aggregate functions operate on all previous consecutive non-empty lines to calculate statistical values.

These functions stop at empty lines or other aggregate functions, allowing you to create multiple independent calculation groups.

[Learn more about Aggregate Functions](https://calcul.io/aggregate-functions/index.md)

[Next: **Constants**](https://calcul.io/instructions/constants/index.md)

**Table of content**

- [Introduction](https://calcul.io/instructions/index.md)
- [Units and conversions](https://calcul.io/instructions/conversions/index.md)
- [List of units](https://calcul.io/instructions/units/index.md)
- [Functions](https://calcul.io/instructions/functions/index.md)
- [Constants](https://calcul.io/instructions/constants/index.md)
- [Currencies, crypto, stock](https://calcul.io/instructions/currency/index.md)
- [Time and dates](https://calcul.io/instructions/time/index.md)

## Using functions functions

Open any function in this category to review its accepted syntax, try editable inputs, and follow links to related operations. Function names are case-sensitive where shown. Start with the smallest working expression, confirm its result, and then combine it with variables or earlier calculator lines for a longer calculation.

The result stays beside the expression, so you can revise one argument at a time and compare the outcome without rebuilding the rest of your work. Use separate lines when you want to preserve intermediate values for checking or reuse.

Not sure which operation fits? Return to the [complete function reference](https://calcul.io/functions/index.md) to compare categories and search by function name.
