Portability | portable |
---|---|
Stability | experimental |
Maintainer | github.com/justinethier |
Safe Haskell | Safe-Infered |
This module implements the numerical tower.
- numericBinop :: (Integer -> Integer -> Integer) -> [LispVal] -> ThrowsError LispVal
- numAdd, numMod, numDiv, numMul, numSub :: [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
- numRound, numTruncate, numCeiling, numFloor :: [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
- numSqrt, numExpt :: [LispVal] -> ThrowsError LispVal
- numExp :: [LispVal] -> ThrowsError LispVal
- numLog :: [LispVal] -> ThrowsError LispVal
- buildComplex :: LispVal -> LispVal -> ThrowsError LispVal
- numMakeRectangular, numAngle, numMagnitude, numImagPart, numRealPart, numMakePolar :: [LispVal] -> ThrowsError LispVal
- numNumerator, numDenominator :: [LispVal] -> ThrowsError LispVal
- numExact2Inexact, numInexact2Exact :: [LispVal] -> ThrowsError LispVal
- num2String :: [LispVal] -> ThrowsError LispVal
- isNumber, isInteger, isRational, isReal, isComplex :: [LispVal] -> ThrowsError LispVal
- isFloatAnInteger :: LispVal -> Bool
- unpackNum :: LispVal -> ThrowsError Integer
Documentation
numericBinop :: (Integer -> Integer -> Integer) -> [LispVal] -> ThrowsError LispValSource
numCast :: [LispVal] -> ThrowsError LispValSource
numRound, numTruncate, numCeiling, numFloor :: [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
numExp :: [LispVal] -> ThrowsError LispValSource
numLog :: [LispVal] -> ThrowsError LispValSource
buildComplex :: LispVal -> LispVal -> ThrowsError LispValSource
numMakeRectangular, numAngle, numMagnitude, numImagPart, numRealPart, numMakePolar :: [LispVal] -> ThrowsError LispValSource
num2String :: [LispVal] -> ThrowsError LispValSource
Convert a number to a string; radix is optional, defaults to base 10
isNumber, isInteger, isRational, isReal, isComplex :: [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.