login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for SandBoxSymbolic revision 3 of 35

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
Editor: Bill Page
Time: 2008/05/22 13:37:57 GMT-7
Note: InputForm

added:

\begin{axiom}
m:Union(InputForm,Matrix Integer)
n:Union(InputForm,Matrix Integer)
a:Union(InputForm,Integer)
b:Union(InputForm,Integer)
ab:=(a+b)*(a-b)
expr ab
mn1:= m*n-n*m
expr mn1
mn2:=(m+n)*m-n)
expr mn2
m:=matrix [[1,2],[3,4]]
n:=matrix [[a,b],[-b,a]]
interpret mn1
\end{axiom}

axiom
a:Union(Symbol,Integer)
Type: Void
axiom
b:Union(Symbol,Integer)
Type: Void
axiom
c:=a*3-b*2
LatexWiki Image(1)
Type: Polynomial Integer
axiom
p:UP(x,Integer):=x*2-7
LatexWiki Image(2)
Type: UnivariatePolynomial?(x,Integer)
axiom
pc := p c
LatexWiki Image(3)
Type: Fraction Polynomial Integer
axiom
f(x)==x^3-x^2+1
Type: Void
axiom
fb := f b
axiom
Compiling function f with type Symbol -> Polynomial Integer
LatexWiki Image(4)
Type: Polynomial Integer
axiom
a:=1
LatexWiki Image(5)
Type: Union(Integer,...)
axiom
b:=-3
LatexWiki Image(6)
Type: Union(Integer,...)
axiom
eval(pc,['a=a,'b=b])
LatexWiki Image(7)
Type: Fraction Polynomial Integer
axiom
eval(c,['a=a,'b=b])
LatexWiki Image(8)
Type: Polynomial Integer
axiom
eval(fb,['a=a,'b=b])
LatexWiki Image(9)
Type: Polynomial Integer
axiom
a:=3.14 Cannot convert right-hand side of assignment 3.14 to an object of the type Union(Symbol,Integer) of the left-hand side.

axiom
m:Union(InputForm,Matrix Integer)
Type: Void
axiom
n:Union(InputForm,Matrix Integer)
Type: Void
axiom
a:Union(InputForm,Integer) You cannot declare a to be of type Union(InputForm,Integer) because either the declared type of a or the type of the value of a is different from Union(InputForm,Integer) . b:Union(InputForm,Integer) You cannot declare b to be of type Union(InputForm,Integer) because either the declared type of b or the type of the value of b is different from Union(InputForm,Integer) . ab:=(a+b)*(a-b)
LatexWiki Image(10)
Type: Integer
axiom
expr ab There are 1 exposed and 0 unexposed library operations named expr having 1 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op expr to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. Cannot find a definition or applicable library operation named expr with argument type(s) Integer Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need. mn1:= m*n-n*m There are 8 exposed and 3 unexposed library operations named - having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op - to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. Cannot find a definition or applicable library operation named - with argument type(s) InputForm InputForm Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need. expr mn1 There are 1 exposed and 0 unexposed library operations named expr having 1 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op expr to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. Cannot find a definition or applicable library operation named expr with argument type(s) Variable mn1 Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need. mn2:=(m+n)*m-n) Line 9: mn2:=(m+n)*m-n) ..............A Error A: Improper syntax. 1 error(s) parsing expr mn2 There are 1 exposed and 0 unexposed library operations named expr having 1 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op expr to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. Cannot find a definition or applicable library operation named expr with argument type(s) Variable mn2 Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need. m:=matrix [[1,2],[3,4]]
LatexWiki Image(11)
Type: Union(Matrix Integer,...)
axiom
n:=matrix [[a,b],[-b,a]]
LatexWiki Image(12)
Type: Union(InputForm?,...)
axiom
interpret mn1 There are no exposed library operations named interpret but there are 2 unexposed operations with that name. Use HyperDoc Browse or issue )display op interpret to learn more about the available operations. Cannot find a definition or applicable library operation named interpret with argument type(s) Variable mn1 Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need.