Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

1 vote

piecewise linear sqrt in python and C output comparison

the numerical differences between your Python and C implementation might simply be that Python's floating point type is a double precision one, whereas your C uses single precision. but I dont know ...
Marcus Müller's user avatar
2 votes

piecewise linear sqrt in python and C output comparison

Well, before they close the question, there are better ways to compute the square root (and other transcendentals) that a big table of piecewise-continuous lines. Even if execution time is important. ...
robert bristow-johnson's user avatar

Top 50 recent answers are included