| Portability | portable |
|---|---|
| Stability | experimental |
| Maintainer | github.com/justinethier |
Language.Scheme.Numerical
Description
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
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
Convert a number to a string; radix is optional, defaults to base 10
isComplex :: [LispVal] -> ThrowsError LispVal
isReal :: [LispVal] -> ThrowsError LispVal
isRational :: [LispVal] -> ThrowsError LispVal
isInteger :: [LispVal] -> ThrowsError LispVal
isNumber :: [LispVal] -> ThrowsError LispVal
isFloatAnInteger :: LispVal -> Bool
A utility function to determine if given value is a floating point number representing an whole number (integer).
unpackNum :: LispVal -> ThrowsError Integer
Extract an integer from the given value, throwing a type error if the wrong type is passed.