登入
選單
返回
Google圖書搜尋
Generalized Arithmetic in C++
Timothy Budd
出版
Department of Computer Science, Oregon State University
, 1998
URL
http://books.google.com.hk/books?id=zgdwAQAACAAJ&hl=&source=gbs_api
註釋
A generalized arithmetic package allows a programmer to think of numbers as abstract quantities, without regard to whether they are represented as integers, floating point values, fractions, complex numbers, or even polynomials. In this paper we describe two implementation techniques that can be used to produce a generalized arithmetic package in the programming language C++, and evaluate the advantages and disadvantages of the two approaches. The second approach uses a technique called multiple polymorphism that has applicability to many other problem areas.