Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about elementary-functions

Read more about elementary-functions

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - elementary-functions

What purpose is the lookup table serving in this code?

Below I have adapted code from William Kahan and K.C. Ng (look at the comment block on the bottom) written in 1986 to produce an approximation of 1 / sqrt(x) where x is an IEEE-754 double precision fl...
test-img

Adam Hyland

c

floating-point

pointer-arithmetic

square-root

elementary-functions

Votes: 0

Answers: 1

Latest Answer

xi = *(unsigned long long int*)&x; This reinterprets the bits representing the double x as an unsigned long long, which should be a 64-bit type. This method of reinterpretation is not defined by ...
test-img

Eric Postpischil

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved