DIY PROMDo It Yourself PROM chip burning help. No PROM begging. No PROMs for sale. No commercial exchange. Not a referral service.
Welcome to ThirdGen.org!
Welcome to ThirdGen.org.
You are currently viewing our forum as a guest, which gives you limited access to view most discussions and access our other features. By joining our community, at no cost, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is free, fast and simple, join the ThirdGen.org community today!
Does anyone know of or have a square root procedure (mathematical or assembly). So far I've only found long approximation methods but maybe this is really the best way of doing it? In that case how do they get so accurate with say sqrt function in high level languages (my own thought but feel free to answer if you care to).
I'm messing around trying to calculate something as practice and learning (HP and Torque due to drag) but I need to raise to power of 2.5, which can be done by square root of 5th power, but I need that sqaure root model.
I'd also use a lookup table, since speed is the only variable that needs a fractional root.
There are a number of interesting algorithms for calculating square roots to any desired precision though, depending on which format you're using. All of them are slow.
Thanks guys, didn't think of the lookup table, thats a good idea. I'll give it a go.
I didn't think about implementing the equation until I was actually writing the code. I think I got too far ahead of myself. BTW, I'm doing it the hard way...with a hex editor, since I don't have a source with the wideband patch, let alone all my values transferred. I guess it's not really that much harder, just have to watch the addressing. Good learning though