What version?
axiom
)version
Value = "Tuesday October 13, 2009 at 18:38:59 "
New domain Domain:
axiom
)show Domain
Domain is a domain constructor
Abbreviation for Domain is DOMAIN
This constructor is exposed in this frame.
Issue )edit /usr/local/lib/open-axiom/x86_64-unknown-linux/1.4.0-2009-10-13/src/algebra/DOMAIN.spad to see algebra source code for DOMAIN
------------------------------- Operations --------------------------------
?=? : (%,%) -> Boolean before? : (%,%) -> Boolean
coerce : % -> OutputForm hash : % -> SingleInteger
latex : % -> String showSummary : % -> Void
?~=? : (%,%) -> Boolean
constructor : % -> DomainConstructor
reflect : ConstructorCall DomainConstructor -> %
reify : % -> ConstructorCall DomainConstructor
For example:
axiom
LD:=[Integer,Float,String]
Type: List Domain
New domain Syntax:
axiom
)show Syntax
Syntax is a domain constructor
Abbreviation for Syntax is SYNTAX
This constructor is exposed in this frame.
Issue )edit /usr/local/lib/open-axiom/x86_64-unknown-linux/1.4.0-2009-10-13/src/algebra/SYNTAX.spad to see algebra source code for SYNTAX
------------------------------- Operations --------------------------------
?=? : (%,%) -> Boolean autoCoerce : % -> String
autoCoerce : % -> Identifier autoCoerce : % -> DoubleFloat
autoCoerce : % -> Integer before? : (%,%) -> Boolean
buildSyntax : (%,List %) -> % coerce : % -> String
coerce : % -> Identifier coerce : % -> DoubleFloat
coerce : % -> Integer coerce : % -> InputForm
coerce : String -> % coerce : Identifier -> %
coerce : DoubleFloat -> % coerce : Integer -> %
coerce : % -> OutputForm compound? : % -> Boolean
convert : SExpression -> % convert : % -> SExpression
getOperands : % -> List % hash : % -> SingleInteger
latex : % -> String nil? : % -> Boolean
retract : % -> String retract : % -> Identifier
retract : % -> DoubleFloat retract : % -> Integer
?~=? : (%,%) -> Boolean
buildSyntax : (Identifier,List %) -> %
?case? : (%,[|String|]) -> Boolean
?case? : (%,[|Identifier|]) -> Boolean
?case? : (%,[|DoubleFloat|]) -> Boolean
?case? : (%,[|Integer|]) -> Boolean
getOperator : % -> Union(Integer,DoubleFloat,Identifier,String,%)
retractIfCan : % -> Union(String,"failed")
retractIfCan : % -> Union(Identifier,"failed")
retractIfCan : % -> Union(DoubleFloat,"failed")
retractIfCan : % -> Union(Integer,"failed")
axiom
reify(String)
Type: ConstructorCall
? DomainConstructor
?
[SandBoxSyntax]
? describes some extensions to OpenAxiom
?
axiom
a := 'x :: OutputForm
axiom
b := 'y :: OutputForm
axiom
a and b
axiom
phi := operator phi
axiom
deq := 6*D(phi(x), x) + 10*phi(x) + 150*cos(phi(x)) = 0
Type: Equation Expression Integer
axiom
solve(deq, phi, x)
Type: Union(Expression Integer,...)
in infix (or
m-expression like) notation like this:
axiom
phi := operator 'phi
axiom
(9 * D(phi(x), x, 2) + 6*D(phi(x), x) + 10 + 150*cos(phi(x)))::InputForm
OpenAxiom? 1.3.0 and higher now supports literal numbers expressed
in a radix other than 10 (both in the interpreter and in library).
For decimal numbers, the syntax is as usual. For base other than 10,
you have to specify the radix first (as a decimal number) followed
by the letter r
, then followed by digits expressing the number.
axiom
16rdeadbeef
axiom
16rcafebabe
axiom
2r111000101001
axiom
y:=operator 'y
axiom
deq := x**3 * D(y x, x, 3) + x**2 * D(y x, x, 2) - 2 * x * D(y x, x) + 2 * y x = 2 * x**4
Type: Equation Expression Integer
axiom
solve(deq,y,z)
Type: Union("failed",...)