Copyright | Justin Ethier |
---|---|
License | MIT (see LICENSE in the distribution) |
Maintainer | github.com/justinethier |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
This module implements the numerical tower.
- numericBinop :: (Integer -> Integer -> Integer) -> [LispVal] -> ThrowsError LispVal
- numSub :: [LispVal] -> ThrowsError LispVal
- numMul :: [LispVal] -> ThrowsError LispVal
- numDiv :: [LispVal] -> ThrowsError LispVal
- numAdd :: [LispVal] -> ThrowsError LispVal
- numMod :: [LispVal] -> ThrowsError LispVal
- numRationalize :: [LispVal] -> ThrowsError LispVal
- numBoolBinopEq :: [LispVal] -> ThrowsError LispVal
- numBoolBinopGt :: [LispVal] -> ThrowsError LispVal
- numBoolBinopGte :: [LispVal] -> ThrowsError LispVal
- numBoolBinopLt :: [LispVal] -> ThrowsError LispVal
- numBoolBinopLte :: [LispVal] -> ThrowsError LispVal
- numCast :: [LispVal] -> ThrowsError LispVal
- numFloor :: [LispVal] -> ThrowsError LispVal
- numCeiling :: [LispVal] -> ThrowsError LispVal
- numTruncate :: [LispVal] -> ThrowsError LispVal
- numRound :: [LispVal] -> ThrowsError LispVal
- numSin :: [LispVal] -> ThrowsError LispVal
- numCos :: [LispVal] -> ThrowsError LispVal
- numTan :: [LispVal] -> ThrowsError LispVal
- numAsin :: [LispVal] -> ThrowsError LispVal
- numAcos :: [LispVal] -> ThrowsError LispVal
- numAtan :: [LispVal] -> ThrowsError LispVal
- numExpt :: [LispVal] -> ThrowsError LispVal
- numSqrt :: [LispVal] -> ThrowsError LispVal
- numExp :: [LispVal] -> ThrowsError LispVal
- numLog :: [LispVal] -> ThrowsError LispVal
- buildComplex :: LispVal -> LispVal -> ThrowsError LispVal
- numMakePolar :: [LispVal] -> ThrowsError LispVal
- numRealPart :: [LispVal] -> ThrowsError LispVal
- numImagPart :: [LispVal] -> ThrowsError LispVal
- numMagnitude :: [LispVal] -> ThrowsError LispVal
- numAngle :: [LispVal] -> ThrowsError LispVal
- numMakeRectangular :: [LispVal] -> ThrowsError LispVal
- numDenominator :: [LispVal] -> ThrowsError LispVal
- numNumerator :: [LispVal] -> ThrowsError LispVal
- numInexact2Exact :: [LispVal] -> ThrowsError LispVal
- numExact2Inexact :: [LispVal] -> ThrowsError LispVal
- num2String :: [LispVal] -> ThrowsError LispVal
- isComplex :: [LispVal] -> ThrowsError LispVal
- isReal :: [LispVal] -> ThrowsError LispVal
- isRational :: [LispVal] -> ThrowsError LispVal
- isInteger :: [LispVal] -> ThrowsError LispVal
- isNumber :: [LispVal] -> ThrowsError LispVal
- isFloatAnInteger :: LispVal -> Bool
- unpackNum :: LispVal -> ThrowsError Integer
Documentation
numericBinop :: (Integer -> Integer -> Integer) -> [LispVal] -> ThrowsError LispVal Source
numSub :: [LispVal] -> ThrowsError LispVal Source
numMul :: [LispVal] -> ThrowsError LispVal Source
numDiv :: [LispVal] -> ThrowsError LispVal Source
numAdd :: [LispVal] -> ThrowsError LispVal Source
numMod :: [LispVal] -> ThrowsError LispVal Source
numRationalize :: [LispVal] -> ThrowsError LispVal Source
numBoolBinopEq :: [LispVal] -> ThrowsError LispVal Source
numBoolBinopGt :: [LispVal] -> ThrowsError LispVal Source
numBoolBinopGte :: [LispVal] -> ThrowsError LispVal Source
numBoolBinopLt :: [LispVal] -> ThrowsError LispVal Source
numBoolBinopLte :: [LispVal] -> ThrowsError LispVal Source
numCast :: [LispVal] -> ThrowsError LispVal Source
numFloor :: [LispVal] -> ThrowsError LispVal Source
numCeiling :: [LispVal] -> ThrowsError LispVal Source
numTruncate :: [LispVal] -> ThrowsError LispVal Source
numRound :: [LispVal] -> ThrowsError LispVal Source
numSin :: [LispVal] -> ThrowsError LispVal Source
numCos :: [LispVal] -> ThrowsError LispVal Source
numTan :: [LispVal] -> ThrowsError LispVal Source
numAsin :: [LispVal] -> ThrowsError LispVal Source
numAcos :: [LispVal] -> ThrowsError LispVal Source
numAtan :: [LispVal] -> ThrowsError LispVal Source
numExpt :: [LispVal] -> ThrowsError LispVal Source
numSqrt :: [LispVal] -> ThrowsError LispVal Source
numExp :: [LispVal] -> ThrowsError LispVal Source
numLog :: [LispVal] -> ThrowsError LispVal Source
buildComplex :: LispVal -> LispVal -> ThrowsError LispVal Source
numMakePolar :: [LispVal] -> ThrowsError LispVal Source
numRealPart :: [LispVal] -> ThrowsError LispVal Source
numImagPart :: [LispVal] -> ThrowsError LispVal Source
numMagnitude :: [LispVal] -> ThrowsError LispVal Source
numAngle :: [LispVal] -> ThrowsError LispVal Source
numDenominator :: [LispVal] -> ThrowsError LispVal Source
numNumerator :: [LispVal] -> ThrowsError LispVal Source
numInexact2Exact :: [LispVal] -> ThrowsError LispVal Source
numExact2Inexact :: [LispVal] -> ThrowsError LispVal Source
num2String :: [LispVal] -> ThrowsError LispVal Source
Convert a number to a string; radix is optional, defaults to base 10
isComplex :: [LispVal] -> ThrowsError LispVal Source
isReal :: [LispVal] -> ThrowsError LispVal Source
isRational :: [LispVal] -> ThrowsError LispVal Source
isInteger :: [LispVal] -> ThrowsError LispVal Source
isNumber :: [LispVal] -> ThrowsError LispVal Source
isFloatAnInteger :: LispVal -> Bool Source
A utility function to determine if given value is a floating point number representing an whole number (integer).
unpackNum :: LispVal -> ThrowsError Integer Source
Extract an integer from the given value, throwing a type error if the wrong type is passed.