Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °
You are not logged in.
Post a reply
Topic review (newest first)
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:
Pour it on. I am a glutton for punishment. That is why I keep posting answers when I know that I will be corrected eventually.
Hehe, sorry. I'll try to go easy on you from now on.
Some people......just kidding. Of course it would, but I am not the sharpest knife in the drawer you know?
Wouldn't it be simpler to just have x/√x² if you're doing it that way?
Here you go:
I will try to compute the absolute value somehow, you ruuuuuuuuuuuuuule!
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.
How about |X| ÷ X?
I have the following: