Advertisement

Functions

  • Richard J. Gaylord
  • Samuel N. Kamin
  • Paul R. Wellin

Abstract

Programming in Mathematica is essentially a matter of writing user-defined functions that work like mathematical functions; when applied to specific values, they perform computations producing results. In this chapter we will demonstrate, in a step-by-step manner, how to create a user-defined function using a functional programming style. Building upon the nesting of function calls, extensive use is made of higher-order and anonymous functions. The construction of one-liners and compound functions with local names is described.

Keywords

Auxiliary Function Function Call Function Definition Step Location Ping Pong 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer Science+Business Media New York 1993

Authors and Affiliations

  • Richard J. Gaylord
    • 1
  • Samuel N. Kamin
    • 2
  • Paul R. Wellin
    • 3
  1. 1.Dept. of Materials ScienceUniversity of IllinoisUrbanaUSA
  2. 2.Dept. of Computer ScienceUniversity of IllinoisUrbanaUSA
  3. 3.Dept. of MathematicsCalifornia State UniversityRohnert ParkUSA

Personalised recommendations