Frns pls help me in dis matlab code.In dis prog even after both LHS & RHS values are same,IF stmt givin rong?
clear all,close all,clc
disp('Given trigonometric identity is verified')
- flyingtiggerukLv 79 years agoFavorite Answer
Beware comparing real numbers. They might be different at the 10th decimal place or something due to rounding errors in calculations. When comparing real numbers it's better to check if the difference between them is less than a certain amount, so
or something like that.