Hi to all, I4m just making an RF sensor with a PIC16F877A, reading Forward RF ( FWD ) in AN0 and Reverse RF ( REV) in AN1 ports. I have a max value of 1024 * ( 4.5 Volts / 5 Vots Ref. ) in each port, giving me a max value of 921 in each case. I need to get the value of the following formula: SWR = 100 * (( 1 + C ) / ( 1 - C )) where C = SQRT( REV / FWD ) Question is how to calculate the square root of ( REV / FWD ) ? I was trying to develop a sum of series to get the SQRT but it is not enough accurate and interpolation method is too slow. Some ideas ? Regards, Augusto -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body