![]() |
Distance formula
Is it possible to do the distance formula Graal? Does graal have square root symbol? It has powers "^2".
|
HTML Code:
temp.objectDistance = ((this.x ^ 2) + (this.y ^ 2)) ^ 0.5; |
Thank you very much! =D
|
Square root is ^.5
Anyways, to further on what Chandler said, this.dx and this.dy should be this.dx and this.dy. Though it really doesn't matter as the variables are what you make of them, but for understanding purposes, you're getting the distance from delta's. |
The root of a number is the same thing as saying that same number to the power of the exponent it's being multipled to inside the root over the degree of the root.
How that works? Well, when you rationalize a root, if the root has no outside degree showing, then it's automatically a square root (degree of 2). If you a number inside that square root that does not have an exponent (i.e. doesn't have a power), then the power is automatically 1, since any number to the power of 1 is that same number. So, by knowing that, you can apply what I said earlier to realize that, for example, the square root of 2 is the same thing as saying 2 to the power of 1/2, or 0.5 (decimal form). To write the power of a number, you use this symbol: ^ So, it would be written as: 2^0.5 or 2^1/2 |
a=1
b=1 a=b a²=ab a²+a²=a²+ab 2a²=a²+ab 2a²-2ab=a²+ab-2ab 2a²-2ab=a²-ab 2(a²-ab)=1(a²-ab) 1=2 yay also Does 0.9 = 1? 1/3 +1/3 +1/3 =1 Put it into decimal, note the 3 in 0.3 is repeating. 0.3 + 0.3 + 0.3 = 0.9 So does 0.9 = 1. |
Yes.
0.999.... repeating = 1. |
Quote:
|
what?
Was Angel_Light joking? It's hard to infer humour from text :( |
1+1=11
|
derr
|
Quote:
|
Quote:
|
Quote:
Hence my custom user title (: |
Quote:
|
Quote:
|
Quote:
In fact, to make Taylor/Maclaurin series work, 0/0 is finite (likely 1). On another note, if you're going to use ^1/2, you may want to think again (PEMDAS). ^(1/2)... |
Quote:
|
Quote:
2(a²-ab)/(a²-ab)=1(a²-ab)/(a²-ab) recall that (a²-ab) = 0 gives us 2*0/0 = 1*0/0 Hey, what do you know. |
Quote:
|
I wonder what would happen IF we put those equation in GS2 and allow the language to solve it .=o
|
"OK, now what you gotta do is go down the road past the old Johnson place. You're gonna find two roads, one parallel and one perpendicular. Now keep going until you come to a highway that bisects it at a 45-degree angle. Solve for x."
|
Quote:
|
Quote:
How can one road be parallel to itself? :rolleyes: |
Quote:
|
Quote:
|
Quote:
|
You can't divide any number by 0, you can only divide 0 by a number.
What are you guys talking about? :confused: |
Quote:
|
Quote:
for f(x) = 1/x .5 = 1/2 1 = 1/1 2 = 1/.5 10 = 1/.1 .... as x approaches 0, f(x) gets infinitely larger and larger, thus equating to infinity. in the case of f(x) = 0/x 0 = 0/2 0 = 0/1 0 = 0/.5 0 = 0/.1 .... as x approaches 0, f(x) stays 0, so 0/0 = 0. |
Yeah I'm taking Algebra II Honors this year, all I can do is think algebraically -_-
|
Quote:
|
Quote:
|
Quote:
The only way to solve 0/0 is to use a limit approach, which makes it equal to 0, and which is the right answer defined by modern mathematics . |
Quote:
|
Quote:
Quote:
e: in fact, lim (x,y) -> (0,0) y/x (does not exist) but evaluated individually gives C. |
Quote:
|
I use a TI 83+ so I know it's not as powerful as a TI 89 but mine gives me undefined and when I used my friends TI 92 it said 0/0 is one... so.... I just lost myself in thought >_<
|
Zero is simple. If you do not have anything, then you cannot receive anything.
For example, If you split nothing (0) between (/) two (2) people, then they both have two nothings, which, equals 0. The same is going to hold true if you divide nothing between no one. It will not even occur and there will still be nothing. You will not create something and end up with one (1) object. For you math wizzes, I'm sure you know zero literally and mathematically means "nothing." Oddly enough though, if you do 0^0 you will end up with one. |
Quote:
f(x) = 0^x f(2) = 0^2 = 0 f(1) = 0^1 = 0 f(.5) = 0^.5 = 0 f(.1) = 0^.1 = 0 f(.01) = 0^.01 = 0 .... as you can see, as you approach 0, the value stays 0, so 0^0 = 0. you cannot apply the algebraic rule that a^0 = 1 unless its a nonzero number. |
| All times are GMT +2. The time now is 04:24 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.