Sep. 20th, 2009

varjohaltia: (Default)
One of the first rules we were always taught, in regards to equations, was to do all the math to the final form with the relevant symbolic representation, and only at the last step to actually use numbers to obtain the final result.

The reason for this is twofold -- first, you end up with a form of the equations you're dealing with you can use for various values, and second, you skip rounding errors.

Case in point: Macroeconomics homework with three values for consumer price index baskets: $124 (baseline), $153 and $161.

First problems: calculate the CPIs, no decimals. The results are 100, 123 and 130. Clear as mud.
Second problem: calculate inflation between the last two. (130-123)/123)= 5.7%. Except I was doing the math in Excel, and had set it to only display the number of digits required in the answer. It displayed (130-123)/123 = 5.2%. Huh?

Well, Excel isn't a physicist, but it is a computer program so it carries a fair bit of precision. Though it displayed the rounded values, it actually did all the calculations with full precision, which turns out to me more like (1.298387097...-1.233870968...)/1.233870968... = 5.2288... %

I'm not convinced this homework really taught me what the professor thought it would.

Profile

varjohaltia: (Default)
varjohaltia

January 2025

S M T W T F S
   1234
5678 91011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 20th, 2025 06:04 am
Powered by Dreamwidth Studios