Portability | portable |
---|---|
Stability | experimental |
Maintainer | github.com/justinethier |
Safe Haskell | Safe-Inferred |
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 LispValSource
numSub :: [LispVal] -> ThrowsError LispValSource
numMul :: [LispVal] -> ThrowsError LispValSource
numDiv :: [LispVal] -> ThrowsError LispValSource
numAdd :: [LispVal] -> ThrowsError LispValSource
numMod :: [LispVal] -> ThrowsError LispValSource
numCast :: [LispVal] -> ThrowsError LispValSource
numFloor :: [LispVal] -> ThrowsError LispValSource
numCeiling :: [LispVal] -> ThrowsError LispValSource
numTruncate :: [LispVal] -> ThrowsError LispValSource
numRound :: [LispVal] -> ThrowsError LispValSource
numSin :: [LispVal] -> ThrowsError LispValSource
numCos :: [LispVal] -> ThrowsError LispValSource
numTan :: [LispVal] -> ThrowsError LispValSource
numAsin :: [LispVal] -> ThrowsError LispValSource
numAcos :: [LispVal] -> ThrowsError LispValSource
numAtan :: [LispVal] -> ThrowsError LispValSource
numExpt :: [LispVal] -> ThrowsError LispValSource
numSqrt :: [LispVal] -> ThrowsError LispValSource
numExp :: [LispVal] -> ThrowsError LispValSource
numLog :: [LispVal] -> ThrowsError LispValSource
buildComplex :: LispVal -> LispVal -> ThrowsError LispValSource
numMakePolar :: [LispVal] -> ThrowsError LispValSource
numRealPart :: [LispVal] -> ThrowsError LispValSource
numImagPart :: [LispVal] -> ThrowsError LispValSource
numMagnitude :: [LispVal] -> ThrowsError LispValSource
numAngle :: [LispVal] -> ThrowsError LispValSource
numNumerator :: [LispVal] -> ThrowsError LispValSource
num2String :: [LispVal] -> ThrowsError LispValSource
Convert a number to a string; radix is optional, defaults to base 10
isComplex :: [LispVal] -> ThrowsError LispValSource
isReal :: [LispVal] -> ThrowsError LispValSource
isRational :: [LispVal] -> ThrowsError LispValSource
isInteger :: [LispVal] -> ThrowsError LispValSource
isNumber :: [LispVal] -> ThrowsError LispValSource
isFloatAnInteger :: LispVal -> BoolSource
A utility function to determine if given value is a floating point number representing an whole number (integer).
unpackNum :: LispVal -> ThrowsError IntegerSource
Extract an integer from the given value, throwing a type error if the wrong type is passed.