Square Root

Install Java to view this project right on your browser!

user_icon Roberth shared it 4 years, 12 months ago
647 views, 2 taggers, 4 people love it, 1 remix by 1 person, 108 downloads, in 2 galleries
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

 
zdo zdo 1 year ago

how do you make a slider

supersmashbrobrawl supersmashbro… 4 years, 2 months ago

its pretty clever but i agree with wii and mohlar you should be able to type in your number it would be useful

Chimpanzee Chimpanzee 4 years, 6 months ago

How do you make the slider go so high?

wii wii 4 years, 10 months ago

u should make it a number that u type in so kids can use it for square root homework =p lol come in use pretty soon

Canthiar Canthiar 4 years, 12 months ago

Sorry to ramble. I don't think range is going to be that much of an issue since the algorithm you provided has a range of 4.29 x 10 ^ 9 to 2.32 x 10 ^ -10. BTW I found the arm code that I was talking about. It's toward the bottom of this page: http://www.sciencezero.org/computing/arm.htm Keep up the good work. I hope to see more.

Canthiar Canthiar 4 years, 12 months ago

In integer having a fixed range isn't so bad since it is always fixed.

Canthiar Canthiar 4 years, 12 months ago

I've used this method before to do integer square roots. The only disadvantage that it had was that it only worked within a certain range. With the integer version you could also early out if result * result = parameter. The ARM processors have conditional instructions that allow this method to be done in a very small number of instructions.

Roberth Roberth 4 years, 12 months ago

Actually, check out my Trig demo at [url](link to project)[/url] for the cosines, sines, and tangents. Keep in mind that what I'm doing here is to demonstrate a very basic concept that could be implemented in a much larger Scratch project, as a sort of "function" library. I would like to know how to get the slider bar to stay fixed at a larger size, but it seems as though the Java applet doesn't preserve the slider size that I use within the development environment.

mohlar mohlar 4 years, 12 months ago

Good idea but the slider is tricky to use unless you click very varefully and close to the 'indicator'. It increments by 122 if you just use the button. To be useful to younger users, you probably need a longer slide. However, this is a good example of how Scratch could be used to perform calculations without being cluttered up with unnecessary and distracting displays or graphics. What's next - cosines, sines, squares, cubes - what?

Please Wait...