cthulhu944

cthulhu944 t1_jdj23l3 wrote

I think the best way to answer this is to understand what is going wrong. What's causing the device to go wrong is that some sort of glitch--like a software bug, a hardware bug, an environmental glitch (power spike or drop), etc. has caused the system to be in a state that doesn't work. For example a software bug has overwritten the variable that tracks the number of players. or a hardware glitch where if the power drops for a millisecond or two, the DAC loses some sort of initial configuration.
So how do you fix that? Just turn the power off, then back on and the device will start back up in the initial, pristine configuration.

1

cthulhu944 t1_j2a8kps wrote

Maybe I should clarify my point then. Taylor series is the way pretty much every system (calculator, computer, cell phone, etc) computes a square root. You can look into the c stadard library and find the the sqrt funtion is implemented with a taylor series. This is because it is computationally efficient and provides a predictable level of accuracy. The estimation algorithm that every other person on this thread has mentioned is really only used by people wanting to do a manual computation, or as an exercise in an introductory computer science class.

1