This is the code in Mathematica:
h[x_] := (If[x > 5, Return[big]]; t = x^3; Return[t - 7])
I fully understand what the code does, with
h=h=big but I have the following issues:
h[x_]does not function if I remove the brackets
h[x_]If[x > 5, Return[big]]; t = x^3; Return[t - 7], what is the function of
()in the code?
- Can someone also explain the significance of the semi-colons in this code, and what is it used instead of commas (which make the code not work). What are the benefits of using ; instead of , in code?