www.delorie.com/gnu/docs/calc/calc_73.html   search  
 
Buy the book!


GNU Emacs Calc 2.02 Manual

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.7.39 Types Tutorial Exercise 7

The relative errors must be converted to absolute errors so that `+/-' notation may be used.

 
1:  1.              2:  1.
    .               1:  0.2
                        .

    20 RET .05 *        4 RET .05 *

Now we simply chug through the formula.

 
1:  19.7392088022    1:  394.78 +/- 19.739    1:  6316.5 +/- 706.21
    .                    .                        .

    2 P 2 ^ *            20 p 1 *                 4 p .2 RET 2 ^ *

It turns out the v u command will unpack an error form as well as a vector. This saves us some retyping of numbers.

 
3:  6316.5 +/- 706.21     2:  6316.5 +/- 706.21
2:  6316.5                1:  0.1118
1:  706.21                    .
    .

    RET v u                   TAB /

Thus the volume is 6316 cubic centimeters, within about 11 percent.


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003