Why would you need an array to do that? You could do it with three variables: var1 = starting angle var2 = highest amplitude encountered so far var3 = angle of highest amplitude The algorithm goes something like this (in pseudo-C): var1 = (...) (26 years ago, 14-Nov-98, to lugnet.robotics)
|