L Leo Tường Member Sep 19, 2021 #1 What will be the output of the following code? Code: sin(symsum(k^2,1,Inf)); A. Nan B. Inf C. Error D. Output is suppressed
What will be the output of the following code? Code: sin(symsum(k^2,1,Inf)); A. Nan B. Inf C. Error D. Output is suppressed
N Ngô Thị Vân New member Sep 19, 2021 #2 Answer: d Explanation: There is no error. MATLAB will first compute the expression within the sin() which will yield Inf. Thereafter, sin(Inf) is computed which is shown as Nan. Upvote 0 Downvote
Answer: d Explanation: There is no error. MATLAB will first compute the expression within the sin() which will yield Inf. Thereafter, sin(Inf) is computed which is shown as Nan.