Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Calculating the Square Root in Flash
Author: Flash Junkie
| Website: http://www.flashkit.com |
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
| » 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.
|
|
|