Affiliation:
1. Department of Mechanical and Aeronautical Engineering, University of California, Davis, CA 95616, USA
Abstract
We have developed a general-purpose block-structured interpretive programming Ianguage. The syntax and semantics of this language called CHare similar to C. CHretains most features of C from the scientific computing point of view. In this paper, the extension of C to CHfor numerical computation of real numbers will be described. Metanumbers of −0.0, 0.0, Inf, −Inf, and NaN are introduced in CH. Through these metanumbers, the power of the IEEE 754 arithmetic standard is easily available to the programmer. These metanumbers are extended to commonly used mathematical functions in the spirit of the IEEE 754 standard and ANSI C. The definitions for manipulation of these metanumbers in I/O; arithmetic, relational, and logic operations; and built-in polymorphic mathematical functions are defined. The capabilities of bitwise, assignment, address and indirection, increment and decrement, as well as type conversion operations in ANSI C are extended in CH. In this paper, mainly new linguistic features of CHin comparison to C will be described. Example programs programmed in CHwith metanumbers and polymorphic mathematical functions will demonstrate capabilities of CHin scientific computing.
Subject
Computer Science Applications,Software
Cited by
23 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献