- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Are not good scales available in your country?
Admin
That second explanation makes sense. Also, if you want to make fun of people who literally interpret the bible there are lots of other examples that could have been chosen that wouldn't also have made you look like an idiot.
Admin
Oh, yay, this argument again. Okay, let's run with this.
So you're saying that 1 Kings 7 is an engineering document, and as such only needs to be accurate to within the engineering tolerances of Solomon's temple. Hey, I'll buy that. The whole chapter is discussing the dimensions of the building in detail. I guess that means the temple, then, was built to a tolerance of 1.4 cubits, or about one meter.
Meanwhile, contemporary construction by the Egyptians was built to tolerances lower than a couple millimeters (the thickness of a sheet of papyrus, anyway). Perhaps that's why the Pyramids of Giza are still standing and Solomon's Temple, well, isn't.
As an engineer myself, maybe I should be praying to Ra and Anubis, instead.
Admin
Admin
You are confusing physical constants - such as the speed of light- which theoretically could change, with mathematical constants - such as pi - which are completely independent from the universe. Pi cannot change.
Admin
That's not inheritance; that's instantiation. So the WTF stands.
Admin
Boolean is missing the south jersey "yeh" and "nawh"
Admin
Admin
Bzzt! Try again.
PI is a mathematical constant. It's not a physical property of the universe. It's like saying that 1 + 1 might equal 3 in the future.
Admin
public static int getNegativeOfNumber ( int num )
{ if (num > 0) {return -1*num} else {return num} }
Admin
Or we can assume that the dude writing the passage was a scribe and not a fucking engineer - therefore making any inaccuracies in reporting the measurement hardly surprising or noteworthy.
Admin
Admin
Also
Admin
If you draw a line segment from the center of a unit circle to some point on the circle at theta degrees, and then draw a right triangle to show the rise and run of that segment, cosine is the run and sine is the rise, and tangent is the slope, slope being rise / run, tan is sine / cosine.
Since 360 degrees = 2pi radians, 45 degrees is pi/4 radians, and a line at 45 degrees has a slope of 1. So tan(pi/4) = 1, solving for pi we get:
pi = 4 * arctan(1)
That's usually the best way to get pi if you have the relatively common arctan function. It's also a good way to test if your trig functions are broken...
Admin
Because the industry standard has said so for upwards of 25 years? http://en.wikipedia.org/wiki/IEEE_floating_point#Rounding_rules
Of course, industry standards can be WTFs too, but this one makes sense because the sum of rounded figures (assuming they're fairly evenly distributed) is closer to the sum of unrounded figures.
Simple example: You need to output 10,000 positive dollar amounts, which for whatever reason need to be individually rounded to the nearest dollar. 500 of them are $(something).50, of which 256 of them are $12.50 and 244 of them are $11.50 (so the sum of those 500 transactions without rounding is $6,006).
If you use round-half-toward-even, then you end up with $6,000. If you use round-half-up, then you end up with $6,500.
In theory, you could hit $6,006 exactly by going back and arbitrarily selecting 6 of the $12.50 amounts to round up, but that's usually considered more trouble than it's worth. (I did have at least one project where the client wanted to hit the target exactly; I ended up arbitrarily selecting the last transaction and fudging it by whatever amount it took, which the client considered acceptable.)
Admin
Oh and let me be the first to point out that this is not the Christian bible, but the Hebrew bible, and you may send my pedantry points to me at your convenience.
Admin
And my troll post is still winning. And yes this is a good way to show that the bible was written by man and not God. It's a history book written by religious people, the events did happen as they see it, but the interpretation is left up to the reader, hence why faith is important.
Admin
Any real computer or maths buff should know Pi is roughly 3.14159265358979323846264338327950288419716939937510582097494492307. Come on, is it really that hard to remember?
Admin
Admin
jaloopauser="Paul Carter"][quote user="Infinite Time and Space"]
I disagree. Perhaps PI is not really constant throughout all time and positions in the infinite universe? Perhaps it is changing ever so slightly, so slow that in all of human history and in our galaxy, the change would be undetectable. At some point in time and space, it very well could be 3.[/quote]
Bzzt! Try again.
PI is a mathematical constant. It's not a physical property of the universe. It's like saying that 1 + 1 might equal 3 in the future.[/quote]
Actually, if you define pi as the ratio of a circle's radius and circumference then it only equals the commonly accepted value in Euclidean flat space. In a curved spacetime it is different
Admin
Are you saying Moses wrote that part?
Admin
[quote user="Paul Carter"][quote user="Infinite Time and Space"]PI is a mathematical constant. It's not a physical property of the universe. It's like saying that 1 + 1 might equal 3 in the future.[/quote]
Only if you assume flat spacetime. One could easily construct a circle which has a measured ratio of circumference to diameter equal to exactly 3.00(bar) if one does so on an appropriately curved spacetime manifold. I leave proof-by-demonstration as an exercise for the student.
Admin
For the negative number problem, based on the code given, it sounds like the method is required to only output a negative number. So, I would think something like this would fulfill the requirement:
I use multiplication, because in a conversation about this very WTF, I learned that there are cases where multiplication is actually faster than just 0-x!
CAPTCHA: jumentum - It's like Jumanji, with momentum!
Admin
N is a measure of force, the question was about weight. If you had been in a physics test you would have got that one wrong.
Admin
Actually, I could've done it better:
I am the WTF! :O
Admin
Back in 1950 you could fool people into thinking $.57 9/10 is 3 cents cheaper than $.60 because saving three dimes on your 20 gallon fill up meant something. But today it's going to take at least a two dime difference per gallon to get me to go across the street for some gas.
When there is a 3 or 4 or 5 on the left side of the decimal point, you need to drop the silly 9/10 of a cent charade.
Admin
There are an infinite number of possible systems of mathematical notation in which 22/7 is an exact representation of PI.
None of them, however, are in common use.
Admin
Weight is a force. Mass is not (in conventional sense).
Admin
Sayer: you either take the Bible literally, or you don't. There is no FileNotFound option.
Admin
Admin
i really, really, REALLY hope Andy P doesn't work for NASA, any engineering firm, or any engineering software firm.
Admin
1+1=3 is certainly true in a given magma (M,+) where the operator + is defined as +: a+b+1 for all a,b in M.
So no, it's not like saying that. The rest of your comment is correct.
Admin
There, fixed!
Admin
But even so, the literal meaning of "thirty cubits" is not "30.0 cubits exactly". None of the extant manuscript include the word "exactly" (or rather, any words in the original language, probably biblical Hebrew, that would support such a translation). There is no reason to exist any such manuscript ever existed.
Taking something "literally" includes, by definition, refraining from injecting any meaning into it that isn't there, such as your insistence on a spurious assumption of mathematical exactness.
Admin
Admin
Admin
Still ignoring positive and negative zero...
Admin
Useful things, bridges.
Admin
I was expecting one of the first comments to be a "GRAVEYARD OF BAD COMMENTS" marker. I am greatly disappointed.
Admin
Admin
Sucker you fell for a myth.
Admin
I agree, though I would personally prefer a solution that defines the uncertainty at run-time rather than compile-time.
Admin
In Pinary, the value of pi is 1.0
Admin
Admin
And given that the more mathematical we geeks get the more pedantic about accuracy we are, I'm sure the peeps using Pi way back when would have preferred to explicitly use something like 3.141592653589793 (even though I'm near certain that would get truncated)
22/7 is fine for primary school kids who want to work out the perimeter of circle then measure it with a piece of string to see that it was correct, but I'm not sure it's even close to an adequate estimate of Pi for any other reason....
Maybe they should have had 21.99115848/7
Admin
Admin
Admin
Also, given they didn't have computers back then, let alone very accurate measuring devices, I think we can accept that 3 was about as accurate as Pi was going to get - but I guess this ties in with your rant about signifcant figures. Apparently Alan Turing was one of them....
Admin
Admin