RosettaCodeData/Task/Higher-order-functions/Mathematica/higher-order-functions-1.math
2023-07-01 13:44:08 -04:00

4 lines
113 B
Text

PassFunc[f_, g_, h_, x_] := f[g[x]*h[x]]
PassFunc[Tan, Cos, Sin, x]
% /. x -> 0.12
PassFunc[Tan, Cos, Sin, 0.12]