Pure Functions

Functions  can be writen as follows:

Sin[π/2.1]

0.997204

or  one can "pipe" the argument to a "pure" version of the function.

π/2.1 // Sin[#] &

0.997204

or we can first write the "pure" version of the function and then applied to the argument.

Sin[#] &   @   Evaluate[π/2.1]

0.997204

It is not the same as /@

Sin[#] &  /@  Evaluate[π/2.1]

1.496

Hee is another example

Sqrt[Sin[π/2.1]]

0.998601

Sin[π/2.1]//Sqrt[#] &

0.998601

Sqrt[#] & @ Sin[π/2.1]

0.998601

It is not the same as  /@

Sqrt[#] & /@ Sin[π/2.1]


Created by Mathematica  (September 7, 2006) Valid XHTML 1.1!