What is the output of the following code? [code]syms [p,q][/code]

What is the output of the following code?
Code:
syms [p,q]
A. Establishes p and q as symbolic variables
B. Syntactical Error
C. Logical Error
D. Only p is symbolically defined
 
Answer: b
Explanation: We cannot declare vectors as symbolic. If we need to declare multiple variables as symbolic, we can write each variable with space in between like- syms p q and the output would’ve been establishes p and q as symbolic variables.
 

Tìm kiếm

Back
Top