Did you know ... | Search Documentation: |
Pack purity -- docs/api_unary.md |
Up: Purity
To use, import the following module
:- use_module(library(punary)).
unary(Unary).
Unary is a valid unary number
add(UnaryA, UnaryB, Sum).
Sum is the value of UnaryA + UnaryB
mul(UnaryA, UnaryB, Product)
Product is the result of UnaryA \* UnaryB
div(Divide, By, Quotient, Remainder)
Quotient is Divide / By and Remainder is the remainder part.
pow(Unary, Factor, Power)
Power is Unary^Factor
string_unary(String, Unary).
Unary is the punary version of String
String is a list of characters as per the pstring
domain
unary_string(Unary, String).
String is the pstring
version of Unary