Map a Function onto a List - Maple Programming Help

Map a Function onto a List

 Description Map a function onto a list.

Enter a list.

 > $\left[{0}{,}\frac{{\mathrm{π}}}{{2}}{,}{1}{,}\sqrt{{2}}{,}\frac{{\mathrm{π}}}{{3}}\right]$
 $\left[{0}{,}\frac{{1}}{{2}}{}{\mathrm{π}}{,}{1}{,}\sqrt{{2}}{,}\frac{{1}}{{3}}{}{\mathrm{π}}\right]$ (1)

Map a function onto the list.

 > $\mathrm{map}\left({\mathrm{cos}},\right)$
 $\left[{1}{,}{0}{,}{\mathrm{cos}}{}\left({1}\right){,}{\mathrm{cos}}{}\left(\sqrt{{2}}\right){,}\frac{{1}}{{2}}\right]$ (2)

Evaluate the expressions.

 > $\mathrm{evalf}\left(\right)$
 $\left[{1.}{,}{0.}{,}{0.5403023059}{,}{0.1559436951}{,}{0.5000000000}\right]$ (3)
 Commands Used