Octave is a high level programming language intended for numerical computations. One of the cool features of this is that with symbolic expressions, you can then simplify mathematical expressions.
<!--more-->
## Setup
First install [Octave](https://www.gnu.org/software/octave/) and the [symbolic package](https://octave.sourceforge.io/symbolic/) using the website or your package manager of choice.
Then in octave type in the following code
```MATLAB
pkg load symbolic
```
## Usage
For every variable not defined earlier in your expression, make sure to declare it as a symbolic data type
```MATLAB
syms x y
```
Then make an expression
```MATLAB
expr = y + sin(x)^2 + cos(x)^2
```
You can then ask Octave to simplify the expression for you