Copyright | Copyright 2024 Yoo Chung |
---|---|
License | Apache-2.0 |
Maintainer | dev@chungyc.org |
Safe Haskell | None |
Language | GHC2021 |
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
- integrate :: Text -> Expression -> Maybe Expression
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"