1 NEXT: concatenating.txt
3 How to actually do math.
5 So, you want to do math, eh?
7 Assuming you know how to create a vector or matrix,
8 let's say you initialize the following variables:
22 The format for the following examples is...
32 ------------------------------------------------------------------------
41 Multiply matrices /A/ and /B/.
42 Yes, hit the not-asterisk button to get the asterisk.
43 You can also just manually type it.
45 ------------------------------------------------------------------------
54 ------------------------------------------------------------------------
64 ------------------------------------------------------------------------
72 Matrix /B/'s determinant isn't zero so the inverse is valid.
73 The inverse function does not check if an inverse actually exists.
75 ------------------------------------------------------------------------
84 Of course the identity matrix is returned,
85 that's the definition of inverse.
87 ------------------------------------------------------------------------
89 store("I", B inverse B)
91 (store "I" (* B (inverse B)))
96 The identity matrix we got from the previous operation is stored in the
99 ------------------------------------------------------------------------
107 You can also use the store function to store regular numbers.
109 ------------------------------------------------------------------------
118 Scalar-matrix multiplication is perfectly legal.
119 Also, multiplication takes as many arguments as you want.
121 ------------------------------------------------------------------------
129 When only one term is applied to the subtraction function, it is
132 ------------------------------------------------------------------------
139 Regular old dot product.
141 ------------------------------------------------------------------------
148 Projection of /u/ onto /v/. Usually written: proj u
151 ------------------------------------------------------------------------
158 The orthogonal component of the projection of /u/ onto /v/.
160 Usually written: u - proj u
163 ------------------------------------------------------------------------
170 Regular old cross product.
172 ------------------------------------------------------------------------
178 This shortand can only be done in prefix notation. It's there to be
179 consistent with common lisp's syntax.
181 ------------------------------------------------------------------------
182 vim:ft=:expandtab:tw=72: