And no, "neutron" does NOT come from "Newton". (I believe "neutron" shares a root with the word "neutral", which makes sense, because neutrons have no charge [as opposed to PROtons, which have POSitive charges].) However, they did name the Newton after Newton... (Newton, N, is the SI unit for force. So, like, I can push something with a force of 20 N. I weigh 738.7 N. Find out how many pounds that is!)
As for Newton's method, it's the method Newton came up with that devised how to estimate to an astonishing degree of accuracy the square root of a number.
http://en.wikipedia.org/wiki/Newton's_method has a pretty good definition, though I don't expect you'll understand it completely. (This is really bordering on basic calculus.)
Newton? As in, Sir Issac Newton? I'm sure you know who Newton is. (If not, look him up! He was a physicist/mathematician of the late 17th century... here, http://en.wikipedia.org/wiki/Isaac_Newton.)
And hold on just a minute, cowboy! How do you get Scratch 1.2? I tried reinstalling Scratch from the website, and it's still the same. How can I find this beta version you speak of?
Also, typically, what I'd have done is made an exception in the script by having something like, "If it's 0, just say its square root is 0." I intentionally omitted this to keep the script literally as short as possible so that people who download it actually have SOME chance of understanding it!
Well, Lucario, I calculate the square root by using Newton's method. This requires me to divide by the value of which I am seeking the square root. So, like, if I allow the minimum value to be zero, then Scratch is going to try to divide by zero. Which would cause that script to stop running.
Wait BATzerk, I just read TheWrockBrothers comment (why didn't I notice before) and online the minimum of of the variable is not 0? Why not? If you say it is than why did you (I am just guessing) make it so "if square root variable (or whatever it is called) is larger than 0 than (do the boring calculating)?
Wait I know how to do it the right way, with the new square root/cosine/sine and other things block. Wait, you do not know what I am talking about, because you did not yet download the new version of scratch 1.2 Beta version. I did.
I downloaded it, and somehow managed to get it to always show the negative square root without changing the script. I also made the "square root" variable into a slider and set the minimum to 0 and it stopped doing the weird stuff.
Thank you once again, Lucario621! ...The reason the calculator does that seemingly random flash of numbers is simply it trying to get as close to zero as possible. For instance, the number 2.3587 E-10 just means 0.00000000002387. That's pretty close to zero, but not quite. This calculator (any calculator, actually) can technically never give you the real square root of a number, it can just estimate it really, really close!
I wanted to see if I could use Scratch's flexible language to estimate square roots of numbers. (Hopefully this will be useful in the future when I need it to calculate the magnitude of speed.)
It's a very simple program, but I hope it will come in handy to those Scratch users who are frustrated because they can't figure out how to get Scratch to give them a square root function! =)
Comments
You need to be logged in to post comments
Add a Comment
Aparently the sqaure route of 0 is 2.39E-168 and constantly changing!
I gimped it!
[]???
The square root of 0 is □.
0 is kinda funny :P
how do you make a variabal just a number?
why is 0 in here?
Why don't you make something besides square roots? My calculator has tons of things. (link to project)
theres a glitch : you go to 0 plz fix it
And no, "neutron" does NOT come from "Newton". (I believe "neutron" shares a root with the word "neutral", which makes sense, because neutrons have no charge [as opposed to PROtons, which have POSitive charges].) However, they did name the Newton after Newton... (Newton, N, is the SI unit for force. So, like, I can push something with a force of 20 N. I weigh 738.7 N. Find out how many pounds that is!)
If you still don't get it, ask, and I'll try and explain it to you better. (Or use Google, which is mighty handy!)
As for Newton's method, it's the method Newton came up with that devised how to estimate to an astonishing degree of accuracy the square root of a number. http://en.wikipedia.org/wiki/Newton's_method has a pretty good definition, though I don't expect you'll understand it completely. (This is really bordering on basic calculus.)
Newton? As in, Sir Issac Newton? I'm sure you know who Newton is. (If not, look him up! He was a physicist/mathematician of the late 17th century... here, http://en.wikipedia.org/wiki/Isaac_Newton.)
And during that time I got a beta version and I not tell where I got, or at least I forgot
Who is newton(is that how they got the name of newtron?) and what is the newton method?
Well by now you can get it and Scratch.1.2.1
And hold on just a minute, cowboy! How do you get Scratch 1.2? I tried reinstalling Scratch from the website, and it's still the same. How can I find this beta version you speak of?
But I have a feeling that didn't entirely answer your question. (Did that answer your question?)
Also, typically, what I'd have done is made an exception in the script by having something like, "If it's 0, just say its square root is 0." I intentionally omitted this to keep the script literally as short as possible so that people who download it actually have SOME chance of understanding it!
Well, Lucario, I calculate the square root by using Newton's method. This requires me to divide by the value of which I am seeking the square root. So, like, if I allow the minimum value to be zero, then Scratch is going to try to divide by zero. Which would cause that script to stop running.
Wait BATzerk, I just read TheWrockBrothers comment (why didn't I notice before) and online the minimum of of the variable is not 0? Why not? If you say it is than why did you (I am just guessing) make it so "if square root variable (or whatever it is called) is larger than 0 than (do the boring calculating)?
Wait I know how to do it the right way, with the new square root/cosine/sine and other things block. Wait, you do not know what I am talking about, because you did not yet download the new version of scratch 1.2 Beta version. I did.
Well thanks for telling me.
the square root of 0 is [] (a square)
I downloaded it, and somehow managed to get it to always show the negative square root without changing the script. I also made the "square root" variable into a slider and set the minimum to 0 and it stopped doing the weird stuff.
Thank you once again, Lucario621! ...The reason the calculator does that seemingly random flash of numbers is simply it trying to get as close to zero as possible. For instance, the number 2.3587 E-10 just means 0.00000000002387. That's pretty close to zero, but not quite. This calculator (any calculator, actually) can technically never give you the real square root of a number, it can just estimate it really, really close!
Well you are AWESOME!!!!!!!!!!!!!!
Wierd
It does the right thing yet when you turn it to the bottom it goes"lj h3vj5kljhw gfaljwrv lajhrgv"kinda then it stays like this:[]