{-# LANGUAGE TypeSynonymInstances #-}
module Foundation.Math.Trigonometry
( Trigonometry(..)
) where
import Basement.Compat.Base
import qualified Prelude
class Trigonometry a where
pi :: a
sin :: a -> a
cos :: a -> a
tan :: a -> a
asin :: a -> a
acos :: a -> a
atan :: a -> a
sinh :: a -> a
cosh :: a -> a
tanh :: a -> a
asinh :: a -> a
acosh :: a -> a
atanh :: a -> a
instance Trigonometry Float where
pi :: Float
pi = Float
forall a. Floating a => a
Prelude.pi
sin :: Float -> Float
sin = Float -> Float
forall a. Floating a => a -> a
Prelude.sin
cos :: Float -> Float
cos = Float -> Float
forall a. Floating a => a -> a
Prelude.cos
tan :: Float -> Float
tan = Float -> Float
forall a. Floating a => a -> a
Prelude.tan
asin :: Float -> Float
asin = Float -> Float
forall a. Floating a => a -> a
Prelude.asin
acos :: Float -> Float
acos = Float -> Float
forall a. Floating a => a -> a
Prelude.acos
atan :: Float -> Float
atan = Float -> Float
forall a. Floating a => a -> a
Prelude.atan
sinh :: Float -> Float
sinh = Float -> Float
forall a. Floating a => a -> a
Prelude.sinh
cosh :: Float -> Float
cosh = Float -> Float
forall a. Floating a => a -> a
Prelude.cosh
tanh :: Float -> Float
tanh = Float -> Float
forall a. Floating a => a -> a
Prelude.tanh
asinh :: Float -> Float
asinh = Float -> Float
forall a. Floating a => a -> a
Prelude.asinh
acosh :: Float -> Float
acosh = Float -> Float
forall a. Floating a => a -> a
Prelude.acosh
atanh :: Float -> Float
atanh = Float -> Float
forall a. Floating a => a -> a
Prelude.atanh
instance Trigonometry Double where
pi :: Double
pi = Double
forall a. Floating a => a
Prelude.pi
sin :: Double -> Double
sin = Double -> Double
forall a. Floating a => a -> a
Prelude.sin
cos :: Double -> Double
cos = Double -> Double
forall a. Floating a => a -> a
Prelude.cos
tan :: Double -> Double
tan = Double -> Double
forall a. Floating a => a -> a
Prelude.tan
asin :: Double -> Double
asin = Double -> Double
forall a. Floating a => a -> a
Prelude.asin
acos :: Double -> Double
acos = Double -> Double
forall a. Floating a => a -> a
Prelude.acos
atan :: Double -> Double
atan = Double -> Double
forall a. Floating a => a -> a
Prelude.atan
sinh :: Double -> Double
sinh = Double -> Double
forall a. Floating a => a -> a
Prelude.sinh
cosh :: Double -> Double
cosh = Double -> Double
forall a. Floating a => a -> a
Prelude.cosh
tanh :: Double -> Double
tanh = Double -> Double
forall a. Floating a => a -> a
Prelude.tanh
asinh :: Double -> Double
asinh = Double -> Double
forall a. Floating a => a -> a
Prelude.asinh
acosh :: Double -> Double
acosh = Double -> Double
forall a. Floating a => a -> a
Prelude.acosh
atanh :: Double -> Double
atanh = Double -> Double
forall a. Floating a => a -> a
Prelude.atanh