| Copyright | Copyright 2024 Yoo Chung |
|---|---|
| License | Apache-2.0 |
| Maintainer | dev@chungyc.org |
| Safe Haskell | Safe-Inferred |
| Language | GHC2021 |
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
- 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"