How can I get a right solution?
이전 댓글 표시
From the euqation expression,b is equal to c and both are equal to zero.However,the simulation result is inverse! I guess that is due to the numerical precision of "double".
What should I do to get right solution?
Thanks!
a = exp(-1i*2*pi/491520*8*10000)
b = 0.4*a-(a-0.6*a)
c = 0.5*a-(a-0.5*a)
답변 (1개)
Image Analyst
2023년 6월 23일
0 개 추천
If 10^-17 is not close enough for zero, what precision do you need?
See the FAQ:
Maybe you should try the Symbolic Toolbox.
카테고리
도움말 센터 및 File Exchange에서 Mathematics and Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!