MCPcopy Create free account
hub / github.com/Edzelf/ESP32-Radio / InvRootR

Function InvRootR

lib/codecs/src/aac_decoder.cpp:5166–5189  ·  view source on GitHub ↗

* Function: InvRootR * * Description: use Newton's method to solve for x = 1/sqrt(r) * * Inputs: r in Q30 format, range = [0.25, 1] (normalize inputs to this range) * * Outputs: none * * Return: x = Q29, range = (1, 2) * * Notes: guaranteed to converge and not overflow for any r in this range * * xn+1 = xn - f(xn)/f'(xn) * f(x) = 1/sq

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

ScaleNoiseVectorFunction · 0.85

Calls 1

MULSHIFT32Function · 0.70

Tested by

no test coverage detected