Expressing mathematical subroutines constructively

Gerald Roylance
1988 Proceedings of the 1988 ACM conference on LISP and functional programming - LFP '88  
The typical subroutines that compute sin(z) and exp(z) bear little resemblance to our mathematical knowledge of these functions: they are composed of concrete arithmetic expressions that include many mysterious numerical constants. Instead of programming these subroutines conventionally, we can express their construction using symbolic ideas such as periodicity and Taylor series. Such an approach has many advantages: the code is closer to the mathematical basis of the function, less vulnerable
more » ... o errors, and is trivially adaptable to various precisions. DTIC (3Nlassachset ts Inst itute of T,.ch"ology I"7 EL E CT : DTr, FEB 1 9 I.
doi:10.1145/62678.62680 dblp:conf/lfp/Roylance88 fatcat:gxqry7ii6zdirluhkz2fxztjja