This domain provides a function-like type that can be queried for domain and co-domain. aldor #include "axiom.as" T ==> SetCategory; aldor Compiling FriCAS source code from file
/var/zope2/var/LatexWiki/sig.as using AXIOM-XL compiler and
options
-O -Fasy -Fao -Flsp -laxiom -Mno-AXL_W_WillObsolete -DAxiom -Y $AXIOM/algebra
Use the system command )set compiler args to change these
options.
#1 (Warning) Deprecated message prefix: use `ALDOR_' instead of `_AXL'
"/var/zope2/var/LatexWiki/sig.as", line 13:
domain(p:%):T == source;
.........^
[L13 C10] #2 (Warning) Function returns a domain that might not be constant (which may cause problems if it is used in a dependent type).aldor #include "axiom.as" T ==> SetCategory; aldor Compiling FriCAS source code from file
/var/zope2/var/LatexWiki/sig2.as using AXIOM-XL compiler and
options
-O -Fasy -Fao -Flsp -laxiom -Mno-AXL_W_WillObsolete -DAxiom -Y $AXIOM/algebra
Use the system command )set compiler args to change these
options.
#1 (Warning) Deprecated message prefix: use `ALDOR_' instead of `_AXL'
"/var/zope2/var/LatexWiki/sig2.as", line 13:
domain(p:%):T == Product(source1,source2);
.........^
[L13 C10] #2 (Warning) Function returns a domain that might not be constant (which may cause problems if it is used in a dependent type).axiom f:Signature(Float, Integer) Type: Void
axiom f:=(x:Float):Integer +-> floor(x)
Type: Signature(Float,Integer)
axiom domain f
Type: SetCategory
axiom codomain f
Type: SetCategory
axiom (f::(Float->Integer))
Type: (Float -> Integer)
axiom (f::(Float->Integer)) 2.2
Type: PositiveInteger
axiom f2:Signature2(Float,Float, Float) Type: Void
axiom f2:=(x:Float,y:Float):Float +-> x+y
Type: Signature2(Float,Float,Float)
axiom domain f2
Type: SetCategory
axiom codomain f2
Type: SetCategory
axiom f2::((Float,Float)->Float)
Type: ((Float,Float) -> Float)
axiom (f2::((Float,Float)->Float))(1.2,2.1)
Type: Float
OpenAxiom version --Bill Page, Tue, 17 Jun 2008 17:11:47 -0700 reply Try this is Axiom SandBoxMorphism
|