Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ ¹ ² ³ °
 

You are not logged in. #1 20060122 10:17:57
A formula driving me crazy, need help please!I have the following: #2 20060122 10:57:16
Re: A formula driving me crazy, need help please!How about X ÷ X? Why did the vector cross the road? It wanted to be normal. #3 20060122 11:04:09
Re: A formula driving me crazy, need help please!
Excuse my ignorance, but if i do X ÷ X I get 1 if X is positive, but if X is negative I still get 1, unless X means absolute value which I am not sure it will be recognized on a computer. Last edited by nikad (20060122 11:07:02) #6 20060122 11:59:52
Re: A formula driving me crazy, need help please!Wouldn't it be simpler to just have x/√x² if you're doing it that way? Why did the vector cross the road? It wanted to be normal. #8 20060122 12:05:16
Re: A formula driving me crazy, need help please!Hehe, sorry. I'll try to go easy on you from now on. Why did the vector cross the road? It wanted to be normal. #11 20060122 19:33:39
Re: A formula driving me crazy, need help please!Assuming that you are programming this...
Absolute value is extremely easy to do on a computer. All it requires is to switch the very first bit of a signed number and then subtract that from the highest possible signed value. Most languages support an abs() function, but it also works if you just do: x = (unsigned int) x or something similar.
Pretty easy actually: Last edited by Ricky (20060122 19:35:20) "In the real world, this would be a problem. But in mathematics, we can just define a place where this problem doesn't exist. So we'll go ahead and do that now..." 