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.Integration.Exponential

Description

Supports basic integration of exponential and logarithmic functions. This does not support the integration of anything else, even if it is trivial like integrating a constant.

Synopsis

Documentation

integrate :: Text -> Expression -> Maybe Expression Source #

Integrates exponential and logarithmic functions required by the Floating type class.

>>> toHaskell <$> integrate "x" (exp "x")
Just "exp x"
>>> toHaskell <$> integrate "x" (log "x")
Just "x * log x - x"