Primitive Functions ---------------------------------------------------------------------- > module Prim ( Ident, Prim(..) > ) > where ---------------------------------------------------------------------- Primitive function definition ---------------------------------------------------------------------- > type Ident = String ---------------------------------------------------------------------- ---------------------------------------------------------------------- > data Prim = Sin -- trigonometric > | Cos > | Tan > | Cot > | Exp -- exponential > | Ln > | Log -- base: 10 > | Arcsin -- arcus > | Arccos > | Arctan > | Arccot > | Sinh -- hyperbolic > | Cosh > | Tanh > | Coth > | Abs -- absolute > deriving ( Eq, Ord, Show ) ----------------------------------------------------------------------