/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

orlp.net
| | basesandframes.wordpress.com

Download Presentation part 1 Download Presentation part 2 I was trying to interpolate a scaling function on an SPU on PS3 and realized, this device has no math library. How do you write powf() without access to libm? The IEEE754 standard for floating point numbers only covers five fundamental functions - addition, subtraction, multiplication, division...
2.9 parsecs

Travel
| |
| | blog.reverberate.org

Author's note: this article used to be called "What Every ComputerProgrammer Should Know About Floating Point, part 1". Some peoplenoted that this was perh...
3.0 parsecs

Travel
| |
| | www.sicpers.info

[AI summary] The article explains that IEEE 754 floating-point numbers are not inherently weird but are specialized tools, and encourages programmers to explore alternative number representations like decimals and posits for more general-purpose computing needs.
1.5 parsecs

Travel
| |
| | www.jeremykun.com

Problem: Compute the product of two polynomials efficiently. Solution: import numpy from numpy.fft import fft, ifft def poly_mul(p1, p2): """Multiply two polynomials. p1 and p2 are arrays of coefficients in degree-increasing order. """ deg1 = p1.shape[0] - 1 deg2 = p1.shape[0] - 1 # Would be 2*(deg1 + deg2) + 1, but the next-power-of-2 handles the +1 total_num_pts = 2 * (deg1 + deg2) next_power_of_2 = 1 << (total_num_pts - 1).
31.2 parsecs

Travel
|