Numeric error propagation: Difference between revisions

m
Line 674:
This is closer to the idea of extending the language to supply additional facilities. At the cost of hand-compiling the arithmetic expression into a sequence of pseudo-machine code subroutines, it is apparent that the mind-tangling associated error formulae need no longer be worried over. The various arithmetic subroutines have to be coded correctly with careful attention to the V or E statements in fact being for the V and E terms, but this is a straightforward matter of checking. And indeed the VPOW(2) routine has the same effect as VSQUARE. The output is the same.
 
Although the example source file uses the F90 MODULE protocol, this is merely for convenience. Otherwise, there would be the same collection of routines, all sharing a COMMON work area. In oremore general use one would extend the routines to provide more checking and some sort of optional trace facility. Indeed, it would be easy enough to prepare an interactive calculator using this scheme so that different calculations (and data) could be more easily experimented with.
 
===Fortran 90 ''et seq''.===
1,220

edits