Simple Problems from a Different Perspective R.G.Selfridge CSE 300 University o f Florida Gainesville FL 32611 We will look, here, at two quite In simple problems and examine a different way of solving them. more natural particular these solutions are far than in other languages, and also in an APL2 environment have some side benfits for particular applications. 1) We w i s h t o s o l v e for 0 (or the corresponding S i n and Cos) g i v e n a pair of equations which we write as: aSin + b +cCos ~Sin + E + ~Cos While the obvious solution is the 8th grade algebra solution another as two vectors solution is to write the coefficients V a,b,c and then use solution Z the vector cross product @ to get the 'homogeneous' VgW origin easily 0, Sin -Z[0] Z[l], Cos -Z[2] Z[l]). The array cross E as (where, product V+.xE+.xW. in is implemented with the proper rank 3 The advantage to using @ is that division is delayed (and in many cases is never necessary), which may be very also useful allows if us the to coefficients are expressions and/or symbolic.
/lp/association-for-computing-machinery/simple-problems-from-a-different-perspective-Eamr4D1O5i