Anyone needs an algorithm to calculate the square-root of a float value, now has a solution.
I have posted an article with C# source and some infos.
http://highfieldtale...he-square-root/
Cheers
An algorithm for the square-root
Started by
Mario Vernari
, Mar 26 2011 04:14 PM
2 replies to this topic
#1
Posted 26 March 2011 - 04:14 PM
Biggest fault of Netduino? It runs by electricity.
#2
Posted 03 April 2011 - 09:41 PM
I find myself wondering (not really seriously) if your application and the Netduino would benefit from the fast inverse square root algorithm (aka the Quake III Hack). If so, maybe we could make it available as a firmware modAnyone needs an algorithm to calculate the square-root of a float value, now has a solution.
I have posted an article with C# source and some infos.
http://highfieldtale...he-square-root/
Cheers
#3
Posted 04 April 2011 - 03:33 AM
I read there was an algorithm based on the IEEE representation of the float, but I wasn't able to convert the C# float to an integer. That is another serious leak of the available framework.
My article was a pure C# solution offered to substitute the (only) one present in Grommet.
Of sure will be replaced with something better in case of native libraries.
Thanks anyway.
Cheers
Biggest fault of Netduino? It runs by electricity.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users