Skip to main content

1989 | OriginalPaper | Buchkapitel

Formulae and Tables

verfasst von : Norman D. Thomson

Erschienen in: APL Programs for the Mathematics Classroom

Verlag: Springer New York

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

In using APL to do straightforward evaluations of arithmetic formulae, the input expression is usually so close to the algebraic statement of the formula that it scarcely merits formal description as a program. One of the considerable advantages of APL over other programming languages is that where only one algebraic quantity is involved in the formula this can often be generalized to a vector, or indeed a higher order array, to give multiple evaluations with no change in APL input. Here are some examples : Area of a circleoR⋆2Volume of a sphereo4× (R⋆3) ÷ 3Conversion from Centigrade to Fahrenheit32+1.8×C If conversion of a range of Centigrade degrees to Fahrenheit were required at 10 degree intervals, use $${\text{32 }} + {\text{ 1}}.{\text{8x}}C \leftarrow 0,{\text{ 1}}0{\text{x}}\wr {\text{1}}0$$ When more than one variable is involved in the formula, outer products can be used to obtain simultaneous evaluations.

Metadaten
Titel
Formulae and Tables
verfasst von
Norman D. Thomson
Copyright-Jahr
1989
Verlag
Springer New York
DOI
https://doi.org/10.1007/978-1-4612-3668-9_5

Premium Partner