Module
Math.Equation
- Package
- purescript-math-equation
- Repository
- athanclark/purescript-math-equation
This module defines data structures that mirror common Math functions, to ease the storage of such an equation.
#NumberConstant Source
#NumberValue Source
data NumberValue
Constructors
ACos NumberValue
ASin NumberValue
ATan NumberValue
ATan2 NumberValue NumberValue
Cos NumberValue
Sin NumberValue
Tan NumberValue
Ceil NumberValue
Floor NumberValue
Round NumberValue
Trunc NumberValue
Exp NumberValue
Log NumberValue
Pow NumberValue NumberValue
Sqrt NumberValue
Remainder NumberValue NumberValue
Value (Value Number)
Constant NumberConstant
Instances
#Value Source
data Value a
Constructors
Lit a
Var VarName
Add (Value a) (Value a)
Sub (Value a) (Value a)
Negate (Value a)
Mul (Value a) (Value a)
Div (Value a) (Value a)
Recip (Value a)
GCD (Value a) (Value a)
LCM (Value a) (Value a)
Abs (Value a)
Max (Value a) (Value a)
Min (Value a) (Value a)
Modulo (Value a) (Value a)
Instances
Generic (Value a) _
(Eq a) => Eq (Value a)
(Show a) => Show (Value a)
Functor Value
(EncodeJson a) => EncodeJson (Value a)
(DecodeJson a) => DecodeJson (Value a)
(DynamicByteLength a) => DynamicByteLength (Value a)
(EncodeArrayBuffer a) => EncodeArrayBuffer (Value a)
(DecodeArrayBuffer a, DynamicByteLength a) => DecodeArrayBuffer (Value a)
(Arbitrary a) => Arbitrary (Value a)
#computeValue Source
computeValue :: forall a. EuclideanRing a => DivisionRing a => Eq a => Ord a => Value a -> BoundVars a -> Either BoundError a
- Modules
- Math.
Equation