In the code below, the second function isreal gives wrong answer after using collect function.
clear all;close all;clc;syms w real;m=w^3-1i*w^2+2*w-1i;mre=real(m)isreal(mre)mrecol=collect(real(m),w)isreal(mrecol)
basic function
clear all;close all;clc;syms w real;m=w^3-1i*w^2+2*w-1i;mre=real(m)isreal(mre)mrecol=collect(real(m),w)isreal(mrecol)
Best Answer