A C++ program that performs symbolic differentiation of mathematical expressions.
- Parses algebraic mathematical expressions into an Abstract Syntax Tree (AST).
- Differentiates expressions with respect to a given variable.
- Simplifies the resulting derivative expression.
- Supports basic arithmetic operations (+, -, *, /) and variables.
To build the project, you will need a C++ compiler that supports C++17. Then, simply run make:
makeThis will create an executable named sdi in the root directory.
To run the program, execute the sdi executable:
./sdiThe program will prompt you to enter a mathematical expression and the variable to differentiate with respect to.
Enter an expression: 2*x^2+5
Differentiate with respect to: x
Parsed expression AST: ((2 * x^2) + 5)
Derivative: 2*2*x
I'm lazy.
This project is licensed under the GPLv3 license.