Pleas explain? Suppose we have two variables, x=2 and y=5, and we want our funct
ID: 3542012 • Letter: P
Question
Pleas explain?
Suppose we have two variables, x=2 and y=5, and we want our function to exchange the values of x and y such that the result is x=5 and y=2. Which command line is missing in place of ? in the function below in order for it to swap the values correctly? : function [x,y] = foo(x,y) temp=x; x=y;? return y = temp; y = x; none What is 1/i? i -i 1 -1 The polynomial x^3 + (1+i)*x^2 - x + 0 is encoded as: [(1+i), -1, 0] [1, (1+i), -1, 0] [1, (1+i), -1] [1, (1+i), 1, 0] [(1+i),1] If my quartic is encoded by q = [q4, q3, q2, q1, q0] then the derivative of my quartic is encoded by [4*q4, 3*q3, 2*q2, q1,0] [4*q4, 3*q3, 2*q2, q1] [0, q1, 2*q2, 3*q3, 4*q4]Explanation / Answer
ques 5) A. y=temp
ques 6) A. i
ques 7) B. [1,(1+i),-1,0]
ques 8) A [4*q4,3*q3,2*q2,q1,0]