Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Math-Physics

Categories Calculating the Square Root in Flash
Author: Flash Junkie | Website: http://www.flashkit.com |

 
Page 2
«prev 1 2 3 next»

I chose use the Newtonian Method and made the following function:

Comment: ----------------------------------------------
Comment: Newton's Method for Finding Square Root
Comment: ----------------------------------------------
Set Variable: "n" = 1
Set Variable: "counter" = 0
Loop While (counter<iterations)
 Set Variable: "n" = n - ((n*n - input) / (2*n))
 Set Variable: "counter" = counter+1
End Loop
Set Variable: "/:output" = n

«prev 1 2 3 next»

» Level Advanced

Added: : 2000-05-25
Rating: 7.26 Votes: 118
Hits: 4647
» Author
Flashjunkie is a self-professed obsessive addict of life. Due to the highly artistic nature required of an Art Director for an Ad agency, he took up Flash to add some math to his diet.
» Download
Download the files used in this tutorial.
Download (4 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments
 
   
 


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers