Skip to main content
. 2024 Apr 5;26(4):316. doi: 10.3390/e26040316
Algorithm 4. The quadrature-based method to compute the square root value of x.
Inputs: x,s0
Output : s // square root of x.
Initialization: BC←s0
CD←x/BC
M←0.5×(BC+CD)
CM←BC−M
sin⁡θ←CM/M
cos⁡θ←retrieved from a lookup table utilizing sin⁡θ.
 s←cos⁡θ×M