SDI

SDI

2026-10-27

Github: https://github.com/sameepkat/SDI

SDI takes as input an expression and differentiates it with respect to the letter given.

Features

  • 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.

Example

Enter an expression: 2*x^2+5
Differentiate with respect to: x
Parsed expression AST: ((2 * x^2) + 5)
Derivative: 2*2*x