Multiple choice general knowledge

The proper syntax to find the value of f at x=5 is syms x f=3*x^2

  1. subs(F,x,,5)

  2. subs(f,5,x)

  3. subs(5,f,x)

  4. subs(f,x,5)

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The subs function syntax is subs(expression, variable, value). For f=3*x^2, subs(f, x, 5) substitutes x=5. Options A has wrong syntax with double comma. Options B and C swap arguments - subs expects (f, variable, value), not (f, value, variable) or (value, f, variable).