Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

뉴턴 메서드를 사용한 유명한 코드를 소개 #5

Open
sa02045 opened this issue Oct 6, 2023 · 0 comments
Open

뉴턴 메서드를 사용한 유명한 코드를 소개 #5

sa02045 opened this issue Oct 6, 2023 · 0 comments

Comments

@sa02045
Copy link
Contributor

sa02045 commented Oct 6, 2023

책을 보면서 뉴턴 메서드 같은 것이 실제로 쓰일까? 했는데 찾아보니 실제로 쓰이더군요.
전설적인 프로그래머 존 카맥이 만든 퀘이크3 게임엔진 알고리즘에서 사용되었습니다.

게임엔진에서 빛의 입사각, 반사각을 구하기 위해 역 제곱근을 연산해야합니다.
그런데 당시 하드웨어로는 최적화된 효율적인 연산이 필요합니다.
이 연산에서 근을 근사해서 구하기 위해 뉴턴 메서드 방법을 사용합니다.

위 코드에서 1st iteration으로 표기된 부분이 뉴튼 메서드를 1번 적용한 코드입니다

jhon

https://ko.wikipedia.org/wiki/%EA%B3%A0%EC%86%8D_%EC%97%AD_%EC%A0%9C%EA%B3%B1%EA%B7%BC

https://www.youtube.com/watch?v=p8u_k2LIZyo

https://stackoverflow.com/questions/1349542/john-carmacks-unusual-fast-inverse-square-root-quake-iii

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant