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.
KeywordsAuxiliary Function Function Call Function Definition Step Location Ping Pong
Unable to display preview. Download preview PDF.