Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
421517 | Electronic Notes in Theoretical Computer Science | 2015 | 8 Pages |
Abstract
Numerical programs performing floating-point computations are very sensitive to the way formulas are written. Several techniques have been proposed concerning the transformation of expressions in order to improve their accuracy and now we aim at going a step further by automatically transforming larger pieces of code containing several assignments and control structures. This article presents a case study in this direction. We consider a PID controller and we transform its code in order to improve its accuracy. The experimental data obtained when we compare the different versions of the code (which are mathematically equivalent) show that those transformations have a significant impact on the accuracy of the computations.
Related Topics
Physical Sciences and Engineering
Computer Science
Computational Theory and Mathematics