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

Edit detail for SandBoxObserverAsIdempotent revision 9 of 21

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Editor: Bill Page
Time: 2014/05/21 19:05:42 GMT+0
Note: nilpotent from idempotent

added:
pq*pq

changed:
-\end{axiom}
trace(pq)
\end{axiom}

Obs(3) is a 9 dimensional Frobenius Algrebra

fricas
(1) -> )set output abbreviate on
V := OrderedVariableList [p,q,r]

\label{eq1}\hbox{\axiomType{OVAR}\ } \left({\left[ p , \: q , \: r \right]}\right)(1)
Type: TYPE
fricas
M := FreeMonoid V

\label{eq2}\hbox{\axiomType{FMONOID}\ } \left({\hbox{\axiomType{OVAR}\ } \left({\left[ p , \: q , \: r \right]}\right)}\right)(2)
Type: TYPE
fricas
gens:List M := enumerate()$V

\label{eq3}\left[ p , \: q , \: r \right](3)
Type: LIST(FMONOID(OVAR([p, q, r])))
fricas
divisible := Record(lm: M,rm: M)

\label{eq4}\hbox{\axiomType{Record}\ } \left({{lm :{\hbox{\axiomType{FMONOID}\ } \left({\hbox{\axiomType{OVAR}\ } \left({\left[ p , \: q , \: r \right]}\right)}\right)}}, \:{rm :{\hbox{\axiomType{FMONOID}\ } \left({\hbox{\axiomType{OVAR}\ } \left({\left[ p , \: q , \: r \right]}\right)}\right)}}}\right)(4)
Type: TYPE
fricas
leftDiv(k:Union(divisible,"failed")):M == (k::divisible).lm
Function declaration leftDiv : Union(Record(lm: FMONOID(OVAR([p,q,r] )),rm: FMONOID(OVAR([p,q,r]))),"failed") -> FMONOID(OVAR([p,q,r]) ) has been added to workspace.
Type: VOID
fricas
rightDiv(k:Union(divisible,"failed")):M == (k::divisible).rm
Function declaration rightDiv : Union(Record(lm: FMONOID(OVAR([p,q,r ])),rm: FMONOID(OVAR([p,q,r]))),"failed") -> FMONOID(OVAR([p,q,r] )) has been added to workspace.
Type: VOID
fricas
K := FRAC POLY INT

\label{eq5}\hbox{\axiomType{FRAC}\ } \left({\hbox{\axiomType{POLY}\ } \left({\hbox{\axiomType{INT}\ }}\right)}\right)(5)
Type: TYPE
fricas
MK := FreeModule(K,M)

\label{eq6}FM \left({{\hbox{\axiomType{FRAC}\ } \left({\hbox{\axiomType{POLY}\ } \left({\hbox{\axiomType{INT}\ }}\right)}\right)}, \:{\hbox{\axiomType{FMONOID}\ } \left({\hbox{\axiomType{OVAR}\ } \left({\left[ p , \: q , \: r \right]}\right)}\right)}}\right)(6)
Type: TYPE
fricas
coeff(x:MK):K == leadingCoefficient(x)
Function declaration coeff : FM(FRAC(POLY(INT)),FMONOID(OVAR([p,q,r] ))) -> FRAC(POLY(INT)) has been added to workspace.
Type: VOID
fricas
monomial(x:MK):M == leadingMonomial(x)
Function declaration monomial : FM(FRAC(POLY(INT)),FMONOID(OVAR([p,q ,r]))) -> FMONOID(OVAR([p,q,r])) has been added to workspace.
Type: VOID
fricas
m(x:M):K == subscript('m,[retract(x)::Symbol])
Function declaration m : FMONOID(OVAR([p,q,r])) -> FRAC(POLY(INT)) has been added to workspace.
Type: VOID
fricas
γ(x:M,y:M):K == subscript('γ,[concat(string retract x, string retract y)::Symbol])
Function declaration γ : (FMONOID(OVAR([p,q,r])), FMONOID(OVAR([p,q, r]))) -> FRAC(POLY(INT)) has been added to workspace.
Type: VOID

Basis

fricas
basis := concat(gens,concat [[j*i for i in gens | i~=j] for j in gens])

\label{eq7}\left[ p , \: q , \: r , \:{p \  q}, \:{p \  r}, \:{q \  p}, \:{q \  r}, \:{r \  p}, \:{r \  q}\right](7)
Type: LIST(FMONOID(OVAR([p, q, r])))

Idempotent

fricas
rule1(ij:MK):MK ==
  for k in gens repeat
    kk := divide(monomial(ij),k*k)
    if kk case divisible then
      ij:=(coeff(ij) * m(k)*γ(k,k)) * (leftDiv(kk) * k * rightDiv(kk))
  return(ij)
Function declaration rule1 : FM(FRAC(POLY(INT)),FMONOID(OVAR([p,q,r] ))) -> FM(FRAC(POLY(INT)),FMONOID(OVAR([p,q,r]))) has been added to workspace.
Type: VOID

Reduction

fricas
rule2(ij:MK):MK ==
  for i in gens repeat
    for j in gens | j ~= i repeat
      for k in gens | k ~= j repeat
        ijk:=divide(leadingMonomial(ij),i*j*k)
        if ijk case divisible then
          if i=k then
            ij := (coeff(ij)*m(i)*m(j)*γ(i,j)*γ(j,i) ) * _
                  (leftDiv(ijk)*i*rightDiv(ijk))
          else
            ij := (coeff(ij)*m(j)*γ(i,j)*γ(j,k) / γ(i,k) ) * _
                  (leftDiv(ijk)*i*k*rightDiv(ijk))
  return(ij)
Function declaration rule2 : FM(FRAC(POLY(INT)),FMONOID(OVAR([p,q,r] ))) -> FM(FRAC(POLY(INT)),FMONOID(OVAR([p,q,r]))) has been added to workspace.
Type: VOID

Modulo fixed point of applied rules

fricas
mod(ij:MK):MK ==
  ijFix:MK := 1
  while ijFix~=ij repeat
    ijFix := ij
    ij := rule1(ij)
    ij := rule2(ij)
  return(ij)
Function declaration mod : FM(FRAC(POLY(INT)),FMONOID(OVAR([p,q,r])) ) -> FM(FRAC(POLY(INT)),FMONOID(OVAR([p,q,r]))) has been added to workspace.
Type: VOID

Matrix

Multiplication is monoidal concatenation modulo the fixed point

fricas
--MT := [[mod(i*j) for j in basis] for i in basis]
-- idempotent
MT := [[monomial(eval(coeff(mod(i*j)),[γ(gens(1),gens(1))=1,γ(gens(2),gens(2))=1,γ(gens(3),gens(3))=1,γ(gens(2),gens(1))=γ(gens(1),gens(2)),γ(gens(3),gens(2))=γ(gens(2),gens(3)),γ(gens(3),gens(1))=γ(gens(1),gens(3))]),monomial(mod(i*j)))$MK for j in basis] for i in basis]
There are 1 exposed and 3 unexposed library operations named leadingMonomial having 1 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op leadingMonomial 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 leadingMonomial with argument type(s) FM(FRAC(POLY(INT)),FMONOID(OVAR([p,q,r])))
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need. FriCAS will attempt to step through and interpret the code.
fricas
Compiling function monomial with type FM(FRAC(POLY(INT)),FMONOID(
      OVAR([p,q,r]))) -> FMONOID(OVAR([p,q,r]))
fricas
Compiling function coeff with type FM(FRAC(POLY(INT)),FMONOID(OVAR([
      p,q,r]))) -> FRAC(POLY(INT))
fricas
Compiling function m with type FMONOID(OVAR([p,q,r])) -> FRAC(POLY(
      INT))
fricas
Compiling function γ with type (FMONOID(OVAR([p,q,r])), FMONOID(OVAR
      ([p,q,r]))) -> FRAC(POLY(INT))
fricas
Compiling function leftDiv with type Union(Record(lm: FMONOID(OVAR([
      p,q,r])),rm: FMONOID(OVAR([p,q,r]))),"failed") -> FMONOID(OVAR([p
      ,q,r]))
fricas
Compiling function rightDiv with type Union(Record(lm: FMONOID(OVAR(
      [p,q,r])),rm: FMONOID(OVAR([p,q,r]))),"failed") -> FMONOID(OVAR([
      p,q,r]))
fricas
Compiling function rule1 with type FM(FRAC(POLY(INT)),FMONOID(OVAR([
      p,q,r]))) -> FM(FRAC(POLY(INT)),FMONOID(OVAR([p,q,r]))) 
   There are 2 exposed and 2 unexposed library operations named divide 
      having 2 argument(s) but none was determined to be applicable. 
      Use HyperDoc Browse, or issue
                             )display op divide
      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 
      divide with argument type(s) 
                 FM(FRAC(POLY(INT)),FMONOID(OVAR([p,q,r])))
                           FMONOID(OVAR([p,q,r]))
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need. FriCAS will attempt to step through and interpret the code.
fricas
Compiling function rule2 with type FM(FRAC(POLY(INT)),FMONOID(OVAR([
      p,q,r]))) -> FM(FRAC(POLY(INT)),FMONOID(OVAR([p,q,r])))
fricas
Compiling function mod with type FM(FRAC(POLY(INT)),FMONOID(OVAR([p,
      q,r]))) -> FM(FRAC(POLY(INT)),FMONOID(OVAR([p,q,r]))) 
   There are 1 exposed and 3 unexposed library operations named 
      leadingMonomial having 1 argument(s) but none was determined to 
      be applicable. Use HyperDoc Browse, or issue
                         )display op leadingMonomial
      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 leadingMonomial with argument type(s) FM(FRAC(POLY(INT)),FMONOID(OVAR([p,q,r])))
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need.

Structure Constants

fricas
R:=FRAC DMP(concat [[x1,x2,x3,x4,x5,x6,x7,x8,x9,x10],[m(i) for i in gens],concat [[γ(j,i) for i in gens] for j in gens]], INT)

\label{eq8}\hbox{\axiomType{FRAC}\ } \left({\hbox{\axiomType{DMP}\ } \left({{\left[ x 1, \: x 2, \: x 3, \: x 4, \: x 5, \: x 6, \: x 7, \: x 8, \: x 9, \: x 10, \:{m_{p}}, \:{m_{q}}, \:{m_{r}}, \:{��_{pp}}, \:{��_{pq}}, \:{��_{pr}}, \:{��_{qp}}, \:{��_{qq}}, \:{��_{qr}}, \:{��_{rp}}, \:{��_{rq}}, \:{��_{rr}}\right]}, \: \hbox{\axiomType{INT}\ }}\right)}\right)(8)
Type: TYPE
fricas
mat3(y:M):List List R == map(z+->map(x+->coefficient(x,y)::FRAC POLY INT,z),MT)
Function declaration mat3 : FMONOID(OVAR([p,q,r])) -> LIST(LIST(FRAC (DMP([x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,m[p],m[q],m[r],γ[pp],γ[pq],γ [pr],γ[qp],γ[qq],γ[qr],γ[rp],γ[rq],γ[rr]],INT)))) has been added to workspace.
Type: VOID
fricas
ss:=map(mat3, basis)
There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient 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. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient 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. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient 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. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient 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. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient 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. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient 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. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient 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. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient 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. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient 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. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient 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. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient 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. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient 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. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient 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. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient 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. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient 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. There are 66 exposed and 13 unexposed library operations named map having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op map 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. There are 4 exposed and 6 unexposed library operations named coefficient having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op coefficient 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. There are no library operations named *01000m Use HyperDoc Browse or issue )what op *01000m to learn if there is any operation containing " *01000m " in its name. There are no library operations named *01000m Use HyperDoc Browse or issue )what op *01000m to learn if there is any operation containing " *01000m " in its name. There are no library operations named *01000m Use HyperDoc Browse or issue )what op *01000m to learn if there is any operation containing " *01000m " in its name. There are 66 exposed and 13 unexposed library operations named map having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op map 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 map with argument type(s) ANON VARIABLE(MT)
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need. FriCAS will attempt to step through and interpret the code.
fricas
Compiling function mat3 with type FMONOID(OVAR([p,q,r])) -> LIST(
      LIST(FRAC(DMP([x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,m[p],m[q],m[r],γ[pp
      ],γ[pq],γ[pr],γ[qp],γ[qq],γ[qr],γ[rp],γ[rq],γ[rr]],INT)))) 
   There are 4 exposed and 6 unexposed library operations named 
      coefficient having 2 argument(s) but none was determined to be 
      applicable. Use HyperDoc Browse, or issue
                           )display op coefficient
      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.
   There are 4 exposed and 6 unexposed library operations named 
      coefficient having 2 argument(s) but none was determined to be 
      applicable. Use HyperDoc Browse, or issue
                           )display op coefficient
      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.
   There are 4 exposed and 6 unexposed library operations named 
      coefficient having 2 argument(s) but none was determined to be 
      applicable. Use HyperDoc Browse, or issue
                           )display op coefficient
      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.
   There are 4 exposed and 6 unexposed library operations named 
      coefficient having 2 argument(s) but none was determined to be 
      applicable. Use HyperDoc Browse, or issue
                           )display op coefficient
      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.
   There are 4 exposed and 6 unexposed library operations named 
      coefficient having 2 argument(s) but none was determined to be 
      applicable. Use HyperDoc Browse, or issue
                           )display op coefficient
      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.
   There are 4 exposed and 6 unexposed library operations named 
      coefficient having 2 argument(s) but none was determined to be 
      applicable. Use HyperDoc Browse, or issue
                           )display op coefficient
      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.
   There are 4 exposed and 6 unexposed library operations named 
      coefficient having 2 argument(s) but none was determined to be 
      applicable. Use HyperDoc Browse, or issue
                           )display op coefficient
      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.
   There are 4 exposed and 6 unexposed library operations named 
      coefficient having 2 argument(s) but none was determined to be 
      applicable. Use HyperDoc Browse, or issue
                           )display op coefficient
      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.
   There are 4 exposed and 6 unexposed library operations named 
      coefficient having 2 argument(s) but none was determined to be 
      applicable. Use HyperDoc Browse, or issue
                           )display op coefficient
      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.
   There are 4 exposed and 6 unexposed library operations named 
      coefficient having 2 argument(s) but none was determined to be 
      applicable. Use HyperDoc Browse, or issue
                           )display op coefficient
      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.
   There are 4 exposed and 6 unexposed library operations named 
      coefficient having 2 argument(s) but none was determined to be 
      applicable. Use HyperDoc Browse, or issue
                           )display op coefficient
      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.
   There are 4 exposed and 6 unexposed library operations named 
      coefficient having 2 argument(s) but none was determined to be 
      applicable. Use HyperDoc Browse, or issue
                           )display op coefficient
      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.
   There are 4 exposed and 6 unexposed library operations named 
      coefficient having 2 argument(s) but none was determined to be 
      applicable. Use HyperDoc Browse, or issue
                           )display op coefficient
      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.
   There are 4 exposed and 6 unexposed library operations named 
      coefficient having 2 argument(s) but none was determined to be 
      applicable. Use HyperDoc Browse, or issue
                           )display op coefficient
      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.
   There are 4 exposed and 6 unexposed library operations named 
      coefficient having 2 argument(s) but none was determined to be 
      applicable. Use HyperDoc Browse, or issue
                           )display op coefficient
      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.
   There are 66 exposed and 13 unexposed library operations named map 
      having 2 argument(s) but none was determined to be applicable. 
      Use HyperDoc Browse, or issue
                               )display op map
      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.
   There are 4 exposed and 6 unexposed library operations named 
      coefficient having 2 argument(s) but none was determined to be 
      applicable. Use HyperDoc Browse, or issue
                           )display op coefficient
      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.
   There are no library operations named *01000m 
      Use HyperDoc Browse or issue
                              )what op *01000m
      to learn if there is any operation containing " *01000m " in its 
      name.
Cannot find a definition or applicable library operation named *01000m with argument type(s) VARIABLE(p)
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need.

Algebra

fricas
cats(m:M):Symbol==concat(map(x+->string(x.gen::Symbol),factors m))::Symbol
Function declaration cats : FMONOID(OVAR([p,q,r])) -> SYMBOL has been added to workspace.
Type: VOID
fricas
A:=AlgebraGivenByStructuralConstants(R,#(basis)::PI,map(cats,basis),ss::Vector(Matrix R))
fricas
Compiling function cats with type FMONOID(OVAR([p,q,r])) -> SYMBOL 
Cannot convert the value from type VARIABLE(ss) to VECTOR(MATRIX( FRAC(DMP([x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,m[p],m[q],m[r],γ[pp],γ[ pq],γ[pr],γ[qp],γ[qq],γ[qr],γ[rp],γ[rq],γ[rr]],INT)))) .

Check Multiplication

fricas
AB := entries basis()$A
A is not a valid type.

Trace

fricas
[rightTrace(i)$A for i in AB]
FriCAS cannot iterate with i over your form now. Perhaps you should try using a conversion to make sure your form is a list or stream, for example.

Scalar Product

fricas
matrix [[trace(i*j) for j in [AB.1,AB.2,AB.3]] for i in [AB.1,AB.2,AB.3]]
There are no library operations named AB Use HyperDoc Browse or issue )what op AB to learn if there is any operation containing " AB " in its name.
Cannot find a definition or applicable library operation named AB with argument type(s) PI
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need.

Center

fricas
C:=basisOfCenter()$AlgebraPackage(R,A); # C
A is not a valid type.

Unit

fricas
rightTrace(c)
There are 1 exposed and 0 unexposed library operations named rightTrace having 1 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op rightTrace 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 rightTrace with argument type(s) VARIABLE(c)
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need.

fricas
test(n=unit()$A)
A is not a valid type.

Orthogonal Observers

fricas
p' := n - (1/trace(p))*p
There are 2 exposed and 0 unexposed library operations named trace having 1 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op trace 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 trace with argument type(s) VARIABLE(p)
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need.

Momentum

fricas
P:=reduce(+,concat [[(1/ ( i<j=>γ(basis(i),basis(j)); i>j=>γ(basis(j),basis(i));1) )::R*AB(i)*AB(j) for j in 1..size()$V] for i in 1..size()$V])
There are no library operations named AB Use HyperDoc Browse or issue )what op AB to learn if there is any operation containing " AB " in its name. Cannot find a definition or applicable library operation named AB with argument type(s) NNI
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need. FriCAS will attempt to step through and interpret the code. There are no library operations named AB Use HyperDoc Browse or issue )what op AB to learn if there is any operation containing " AB " in its name.
Cannot find a definition or applicable library operation named AB with argument type(s) PI
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need.

fricas
P' := n - (1/trace(P))*P;
There are 2 exposed and 0 unexposed library operations named trace having 1 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op trace 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 trace with argument type(s) VARIABLE(P)
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need.