Newton-Raphson reciprocal approximation , 1/x and 1/sqrt(x)

버전 1.0.1 (20.2 KB) 작성자: Gert Kruger
The Newton-Raphson approximation of the reciprocal, i.e. 1/x and square root reciprocal is provided along with accuracy testing jigs.
다운로드 수: 67
업데이트 날짜: 2019/5/29

라이선스 보기

The reciprocal calculation in a real-time controller is quite computationally expensive. The Newton-Raphson approximation of the reciprocal saves on the computational cost at the expense of accuracy. If the reciprocal of an input signal is calculated, with the signal itself having a limited change from one execution cycle to the next, then the previously calculated Newton-Raphson reciprocal serves as an initial "guess" to the new the iteration. This results in a large improvement in accuracy.

The number of iterations can be modified according to the required accuracy.

An analysis can be found in:
Fowler, D. L., and James E. Smith. "An accurate, high speed implementation of division by reciprocal approximation." Proceedings of 9th Symposium on Computer Arithmetic. IEEE, 1989.

인용 양식

Gert Kruger (2024). Newton-Raphson reciprocal approximation , 1/x and 1/sqrt(x) (https://www.mathworks.com/matlabcentral/fileexchange/71675-newton-raphson-reciprocal-approximation-1-x-and-1-sqrt-x), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Newton-Raphson Method에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.1

Removed an unnecessary variable from the reciprocal calculation which was used for performance analysis. The functions are now suitable for use (copy and paste).

1.0.0