A collection of operations on floating point numbers.
Functions:
*.
| +.
| -.
| /.
| atan
| cos
| exp
| i2f
| log
| round
| sin
| sqrt
| tan
| truncate
|
Summary of exported functions:
|
(+.) :: Float -> Float -> Float
|
|
Addition on floats.
|
|
(-.) :: Float -> Float -> Float
|
|
Subtraction on floats.
|
|
(*.) :: Float -> Float -> Float
|
|
Multiplication on floats.
|
|
(/.) :: Float -> Float -> Float
|
|
Division on floats.
|
|
i2f :: Int -> Float
|
|
Conversion function from integers to floats.
|
|
truncate :: Float -> Int
|
|
Conversion function from floats to integers.
|
|
round :: Float -> Int
|
|
Conversion function from floats to integers.
|
|
sqrt :: Float -> Float
|
|
Square root.
|
|
log :: Float -> Float
|
|
Natural logarithm.
|
|
exp :: Float -> Float
|
|
Natural exponent.
|
|
sin :: Float -> Float
|
|
Sine.
|
|
cos :: Float -> Float
|
|
Cosine.
|
|
tan :: Float -> Float
|
|
Tangent.
|
|
atan :: Float -> Float
|
|
Arc tangent.
|
|
Prelude
(+.) :: Float -> Float -> Float
Addition on floats.
-
Further infos:
-
-
defined as left-associative infix operator with precedence 6
(-.) :: Float -> Float -> Float
Subtraction on floats.
-
Further infos:
-
-
defined as left-associative infix operator with precedence 6
(*.) :: Float -> Float -> Float
Multiplication on floats.
-
Further infos:
-
-
defined as left-associative infix operator with precedence 7
(/.) :: Float -> Float -> Float
Division on floats.
-
Further infos:
-
-
defined as left-associative infix operator with precedence 7
i2f :: Int -> Float
Conversion function from integers to floats.
truncate :: Float -> Int
Conversion function from floats to integers.
The result is the closest integer between the argument and 0.
round :: Float -> Int
Conversion function from floats to integers.
The result is the nearest integer to the argument.
If the argument is equidistant between two integers,
it is rounded to the closest even integer value.
sqrt :: Float -> Float
Square root.
log :: Float -> Float
Natural logarithm.
exp :: Float -> Float
Natural exponent.
sin :: Float -> Float
Sine.
cos :: Float -> Float
Cosine.
tan :: Float -> Float
Tangent.
atan :: Float -> Float
Arc tangent.
Generated by CurryDoc
(Version 0.4.1 of June 7, 2007) at Aug 28 15:28:01 2008