RosettaCodeData/Task/Higher-order-functions/Mathematica/higher-order-functions-1.math

5 lines
113 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
PassFunc[f_, g_, h_, x_] := f[g[x]*h[x]]
PassFunc[Tan, Cos, Sin, x]
% /. x -> 0.12
PassFunc[Tan, Cos, Sin, 0.12]