MATLAB: I don’t know how to prove sin^2(x)+cos^2(x)=1

MATLABprovesin^2(x)+cos^2(x)=1

I want to prove this thing by Matlab
sin^2 (x) + cos^2 (x) = 1
Somebody help me.
Please…..

Best Answer

There are multiple ways to prove this:
Option 1:
x = rand ;
sin(x)^2+cos(x)^2
Option 2:
syms a b c
sinx = a/c ;
cosx = b/c ;
LHS = sinx^2+cosx^2 ;
In the above we have
Thus LHS = 1