So, I'm sitting at work yesterday and one of our users needs an easy way to calculate the area of a trapezoid.
I still and think about things and come up with a decent enough solution using my old high school algebra.
I post the solution.
10 minutes later one of our developers comes back and replaced the entire function with less than a single line of code
Apparantly I forgot that the vector area of a quadrilateral is one half the cross product of the diagonals.
More significant, we never spent any real time on linear algebra back in High School. As a result, I lost on on a wealth of cute little tricks like this one.
Folks might find the following web site amusing:
http://softsurfer.com/Archive/algorithm_01...orithm_0101.htm
Page 1 of 1
Cute little math trick
#2
Posted 2009-June-19, 06:19
Nice, I didn't know about that theorem either. Indeed it's a cute page, thanks.
... and I can prove it with my usual, flawless logic.
George Carlin
George Carlin
#4
Posted 2009-June-19, 21:12
What, no "LOL"?

--------------------
As for tv, screw it. You aren't missing anything. -- Ken Berg
Our ultimate goal on defense is to know by trick two or three everyone's hand at the table. -- Mike777
I have come to realise it is futile to expect or hope a regular club game will be run in accordance with the laws. -- Jillybean
As for tv, screw it. You aren't missing anything. -- Ken Berg
Our ultimate goal on defense is to know by trick two or three everyone's hand at the table. -- Mike777
I have come to realise it is futile to expect or hope a regular club game will be run in accordance with the laws. -- Jillybean
Page 1 of 1