| Copyright | (c) Fabricio Olivetti 2021 - 2024 |
|---|---|
| License | BSD3 |
| Maintainer | fabricio.olivetti@gmail.com |
| Stability | experimental |
| Portability | FlexibleInstances, DeriveFunctor, ScopedTypeVariables |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Data.SRTree.Derivative
Description
Symbolic derivative of SRTree expressions
Synopsis
- derivative :: Floating a => Function -> a -> a
- doubleDerivative :: Floating a => Function -> a -> a
- deriveByVar :: Int -> Fix SRTree -> Fix SRTree
- deriveByParam :: Int -> Fix SRTree -> Fix SRTree
Documentation
derivative :: Floating a => Function -> a -> a #
Derivative of each supported function For a function h(f) it returns the derivative dh/df
>>>derivative Log 2.00.5
doubleDerivative :: Floating a => Function -> a -> a #
Second-order derivative of supported functions
>>>doubleDerivative Log 2.0-0.25