symtegration-0.4.0: Library for symbolic integration of mathematical expressions.
CopyrightCopyright 2024 Yoo Chung
LicenseApache-2.0
Maintainerdev@chungyc.org
Safe HaskellNone
LanguageGHC2021

Symtegration.Differentiation

Description

Differentiate symbolic representations of mathematical expressions. This module does not actually implement differentiation, but is rather a thin wrapper over Numeric.AD providing derivatives for Expression with some simplification applied.

Synopsis

Documentation

differentiate Source #

Arguments

:: Text

Symbol representing the variable.

-> Expression

Symbolic representation of the mathematical expression to differentiate.

-> Expression

The derivative.

Differentiates a mathematical expression.

>>> toHaskell $ differentiate "x" $ "x" ** 2
"2 * x"
>>> toHaskell $ differentiate "x" $ "a" * sin "x"
"a * cos x"

This uses Numeric.AD.