Chaotic Squaring v0.1.1
Share   astrient - Thursday February 7, 2008 11:07 UTC -

This example demonstrates how using floats vs double and different precisions can impact simple calculations.

Please refer to page 24 of "Coincidences, Chaos, and All That Math Jazz" by Edward Burger and Michael Starbird

The difference between the float and double is noticeable in the first iteration. The difference between the two doubles will take more iterations.

Line 1, double, d = (d*d) -2
Line 2, float, f = (f*f) -2
Line 3, double, d = (((d*d) -2)*100.0)/100.0)

report this application
Total Accounts: 100,539
Total Applications: 6,490
Total Files: 218,719
Total Downloads: 6,563,012
Total Stored: 15.69GB
by ashishi
by ashishi
by ashishi
Caccia al Quadro
by mikesac
Naija Lyrics Wiki - ME
by trinisoftinc
Advertising  /  Build  /  Terms  /  Comments  /  Libraries  /  Devices  /  Clients  /  Forum  /  blog  /  xhtml
Consulting - Buy, Run, Invest - ©2011 Astrient Labs, LLC 
Buy, Run, Invest Consulting