What is the output of the following code? [code]poly[ 1 2 3][/code]

Tâm Tây

New member
What is the output of the following code?
Code:
poly[ 1 2 3]
A. x + 2x + 3x$^{2}$
B. x$^{3}$ + 2x$^{2}$ + x
C. Error
D. Cannot be determined
 
Answer: c
Explanation: The input to the poly command has to be within parentheses. If the input is a vector, one can define the vector, prior to giving it as an input, or give the input like poly([1 2 3]).
 

Tìm kiếm

Back
Top