4 (load("vector_rebuild"), 'done);
7 [1,2]+t*[3,4], vector_simp;
10 vector_rebuild([3*t+1,4*t+2], [t]);
13 vector_rebuild([1,2]+t*[3,4]+[5,6]+(t/2-1)*[7,8], [t]);
16 covect([1/2,1/3,1/4]), vector_factor;
17 (1/12)*matrix([6],[4],[3])$
20 `vector_factor' returns
21 ((MTIMES SIMP) -1 ((MTIMESQ SIMP) 2 ((MLIST SIMP) 1 2))) */
22 block([vector_factor_minus:true],
23 args(vector_factor([-2,-4])));
26 extract_equations([1,2]+t*[3,4] = [4,3]+s*[2,1]);
27 [3*t+1 = 2*s+4,4*t+2 = s+3]$
32 block([v: covect([1,2])], 1/|v|*v);
33 (1/sqrt(5))*matrix([1],[2])$
35 (v([args]):= covect(args), 'done);
38 block([plane1, plane2, veq, sys, so, params],
39 plane1: v(1,2,3)+p*v(4,5,6)+q*v(7,8,9),
40 plane2: v(3,2,1)+r*v(6,5,4)+s*v(9,8,7),
42 sys: extract_equations(veq),
43 so: algsys(sys,[p,q,r,s]),
44 params: subst([%rnum_list[1]=u, %rnum_list[2]=v], so),
45 vector_rebuild(subst(params, plane2), [u, v]));
46 v*matrix([7],[8],[9])+u*matrix([4],[5],[6])+matrix([1],[2],[3])$
49 n: [1,2,3], a: [2,0,1],
51 plane: vector_simp(plane),
52 plane: subst(x=[x1,x2,x3], plane),
59 (1/sqrt(14))*matrix([1],[2],[3])$
66 x . matrix([1],[2],[3]) = 5$
68 block([point, a, n, en],
80 [vector_simp(a+t*en), vector_factor(vector_rebuild(a+t*en, [t]))]);
81 [matrix([t/sqrt(14)+2],[(2*t)/sqrt(14)],[(3*t)/sqrt(14)+1]),
82 (t/sqrt(14))*matrix([1],[2],[3])+matrix([2],[0],[1])]$
84 args(vector_factor(v(-2,-4)));
85 [2,matrix([-1],[-2])]$
87 block([vector_factor_minus:true], args(vector_factor(v(-2,-4))));
90 block([vector_factor: true, M, M_1],
91 M: matrix([1,2],[3,-1]),