1989 | OriginalPaper | Buchkapitel
Formulae and Tables
verfasst von : Norman D. Thomson
Erschienen in: APL Programs for the Mathematics Classroom
Verlag: Springer New York
Enthalten in: Professional Book Archive
Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.
Wählen Sie Textabschnitte aus um mit Künstlicher Intelligenz passenden Patente zu finden. powered by
Markieren Sie Textabschnitte, um KI-gestützt weitere passende Inhalte zu finden. powered by
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.