On Thu, 18 Mar 1999, Graham Daniel wrote: > r=(x^2+y^2)^.5 > > use a table to store x & y values for 0 to 90 degrees in your minimum > step size. if accuracy is important and table size is small then you > must interpolate values inbetween table entries. PTM: You don't need y -table at all. Use x table backwards: sin(x)=cos(90-x) in first quadrant. -------------------------------------------------------------------------- PTM, ptmusta@utu.fi, http://www.utu.fi/~ptmusta OH1HEK Lab.ins. (mikrotuki) ATK-keskus/Mat.Luon.Tdk OI7234 Lab.engineer (PC support) Computer Center Mail: Turun Yliopisto / Fysla, 20014 Turku Pt 02-3336669, FAX 02-3335632 (Pk 02-2387010, NMT 0400-555577) --------------------------------------------------------------------------