arXiv.itsnick.co

an independent field guide to 23 million papers from arXiv & OpenAlex — not affiliated with arXiv.org

Computer Science · Hardware and Architecture

Augmenting a Programming Language with Complex Arithmetic

W. Kahan, Justin Thomas

· UC Berkeley

See on the map

Abstract

Currently, programming languages that support COMPLEX arithmetic as well as REAL oblige compilers to implement certain obscure optimizations lest expressions mixing REAL with COMPLEX variables engender superfluous or even harmful computation. This can be avoided if the language provides, for the compiler's use, a third IMAGINARY data-type about which the programmer need know only the name of the language's imaginary unit <i>I</i> or <i>i</i> or <i>j</i>. And on computers conforming to IEEE 754/854, the scheme proposed here honors complex conjugation in ways that other schemes cannot

More like this