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

Description

Supports basic integration of trigonometric 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 trigonometric functions required by the Floating type class.

>>> toHaskell <$> integrate "x" (sin "x")
Just "negate (cos x)"
>>> toHaskell <$> integrate "x" (cos "x")
Just "sin x"