fricas (1) -> As := matrix([ [-3,
Type: Matrix(Integer)
fricas A := subMatrix(As,
Type: Matrix(Integer)
fricas ob := orthonormalBasis(A)
Type: List(Matrix(Expression(Integer)))
fricas P : Matrix(Expression Integer) := new(3,
Type: Matrix(Expression(Integer))
fricas setsubMatrix!(P,
Type: Matrix(Expression(Integer))
fricas setsubMatrix!(P,
Type: Matrix(Expression(Integer))
fricas setsubMatrix!(P,
Type: Matrix(Expression(Integer))
fricas Pt := transpose(P)
Type: Matrix(Expression(Integer))
fricas Ps : Matrix(Expression Integer) := new(4,
Type: Matrix(Expression(Integer))
fricas Ps(1,
Type: Expression(Integer)
fricas setsubMatrix!(Ps,
Type: Matrix(Expression(Integer))
fricas PsT := transpose(Ps)
Type: Matrix(Expression(Integer))
fricas PsTAsPs := PsT * As * Ps
Type: Matrix(Expression(Integer))
fricas b1 := PsTAsPs(2,
Type: Expression(Integer)
fricas l1 := PsTAsPs(2,
Type: Expression(Integer)
fricas Us : Matrix(Expression Integer) := new(4,
Type: Matrix(Expression(Integer))
fricas Us(1,
Type: Expression(Integer)
fricas Us(2,
Type: Expression(Integer)
fricas Us(3,
Type: Expression(Integer)
fricas Us(4,
Type: Expression(Integer)
fricas Us(2,
Type: Expression(Integer)
fricas Us
Type: Matrix(Expression(Integer))
fricas PsUs := Ps * Us
Type: Matrix(Expression(Integer))
fricas PsUsT := transpose(PsUs)
Type: Matrix(Expression(Integer))
fricas PsUsTAsPsUs := PsUsT * As * PsUs
Type: Matrix(Expression(Integer))
fricas C := inverse(PsUs)
Type: Union(Matrix(Expression(Integer)),
fricas c := PsUsTAsPsUs(1,
Type: Expression(Integer)
fricas gQ := PsUsTAsPsUs / c
Type: Matrix(Expression(Integer))
fricas x1 := transpose(matrix([[1,
Type: Matrix(Integer)
fricas v1 := transpose(x1) * As * x1
Type: Matrix(Integer)
fricas x2 := C * x1
Type: Matrix(Expression(Integer))
fricas v2 := transpose(x2) * PsUsTAsPsUs * x2
Type: Matrix(Expression(Integer))
... --ren, Fri, 07 Jul 2006 14:33:03 -0500 reply fricas )clear value c
Type: Matrix(Polynomial(Integer))
fricas A := subMatrix(As,
Type: Matrix(Polynomial(Integer))
fricas ob := orthonormalBasis(A)
Type: List(Matrix(Expression(Integer)))
fricas P : Matrix(Expression Integer) := new(3,
Type: Matrix(Expression(Integer))
fricas setsubMatrix!(P,
Type: Matrix(Expression(Integer))
fricas setsubMatrix!(P,
Type: Matrix(Expression(Integer))
fricas setsubMatrix!(P,
Type: Matrix(Expression(Integer))
fricas Pt := transpose(P)
Type: Matrix(Expression(Integer))
fricas Ps : Matrix(Expression Integer) := new(4,
Type: Matrix(Expression(Integer))
fricas Ps(1,
Type: Expression(Integer)
fricas setsubMatrix!(Ps,
Type: Matrix(Expression(Integer))
fricas PsT := transpose(Ps)
Type: Matrix(Expression(Integer))
fricas PsTAsPs := PsT * As * Ps
Type: Matrix(Expression(Integer))
fricas Us : Matrix(Expression Integer) := new(4,
Type: Matrix(Expression(Integer))
fricas Us(1,
Type: Expression(Integer)
fricas Us(2,
Type: Expression(Integer)
fricas Us(3,
Type: Expression(Integer)
fricas Us(4,
Type: Expression(Integer)
fricas Us(2,
Type: Expression(Integer)
fricas Us(3,
Type: Expression(Integer)
fricas Us(4,
Type: Expression(Integer)
fricas Us
Type: Matrix(Expression(Integer))
fricas PsUs := Ps * Us
Type: Matrix(Expression(Integer))
fricas PsUsT := transpose(PsUs)
Type: Matrix(Expression(Integer))
fricas PsUsTAsPsUs := PsUsT * As * PsUs
Type: Matrix(Expression(Integer))
fricas cc := PsUsTAsPsUs(1,
Type: Expression(Integer)
fricas so := solve(cc = 0,
Type: List(Equation(Expression(Integer)))
fricas c0 := rhs so.1
Type: Expression(Integer)
fricas gQ := PsUsTAsPsUs / cc
Type: Matrix(Expression(Integer))
fricas eval(PsUsTAsPsUs,
Type: Matrix(Expression(Integer))
|