See also NonNegativeInteger spad )abbrev domain PI PositiveInteger
++ Author:
++ Date Created:
++ Change History:
++ Basic Operations:
++ Related Constructors:
++ Keywords: positive integer
++ Description: \spadtype{PositiveInteger} provides functions for
++ positive integers.
PositiveInteger: Join(AbelianSemiGroup,OrderedSet,Monoid) with
gcd: (%,%) -> %
++ gcd(a,b) computes the greatest common divisor of two
++ positive integers \spad{a} and b.
commutative("*")
++ commutative("*") means multiplication is commutative : x*y = y*x
== SubDomain(NonNegativeInteger,x+->(x > 0)) add
x:%
y:%
spad Compiling FriCAS source code from file
/var/zope2/var/LatexWiki/408887470856718679-25px001.spad using
old system compiler.
PI abbreviates domain PositiveInteger
------------------------------------------------------------------------
initializing NRLIB PI for PositiveInteger
compiling into NRLIB PI
****** comp fails at level 1 with expression: ******
((+-> |x| (< 0 |x|)))
****** level 1 ******
$x:= (+-> x (< (Zero) x))
$m:= (Boolean)
$f:=
((((|#1| #) (* #) (+ #) (< #) ...)))axiom )show PositiveInteger |