Error Analysis on Floating-Point Arithmetic in C Programming Language Library Functions

Author(s):  
Min Tang ◽  
Xia Zeng ◽  
Kai Song ◽  
Jian Liu
2013 ◽  
Vol 462-463 ◽  
pp. 891-895
Author(s):  
Cong Cong Fang ◽  
Xiao Jing Yang

By employing the ASCII type communication protocols between MCU and KingView provided by WellinTech Inc, basing on the analysis of COM port setting and command format of read-write operation between MCU and the KingView, this paper design a read-write operation on floating point data program with C programming language and realize the real-time communication between MCU and KingView successfully, which improved the accuracy and scope of data transmitted between them. Data definition and some key subprograms like serial ports initialization, read floating point data from MCU, write floating point data to MCU are provided in the paper. It has high portability and application value.


1993 ◽  
Vol 22 (451) ◽  
Author(s):  
Ole Caprani ◽  
Kaj Madsen

<p>Rounded interval arithmetic is very easy to implement by means of directed rounding arithmetic operators. Such operators are available in the IEEE floating point arithmetic of the transputer. When a few small pieces of assembly language code are used to access the directed rounding operators, the four basic rounded interval arithmetic operators can easily be expressed in the programming language Occam.</p><p>The performance of this implementation is assessed and it is shown that the time consuming part of the calculation are not the directed rounding floating point operations as one might have expected. Most of the time is spent with transport of operands to and from the on-chip floating point unit and the procedure call/parameter passing overhead. Based on this experience the implementation is improved. This implementation runs with 0.15 MIOPS (Million Interval Operations Per Second) or 0.30 MFLOPS on an example interval calculation proposed by Moore. Furthermore, it is demonstrated that an advanced interval language compiler may provide a performance of 0.30 MIOPS or 0.59 MFLOPS on this example calculation.</p>


Sign in / Sign up

Export Citation Format

Share Document