MATLAB: Implementing mathematical functions in Matlab

mathematicstrigonometry

How can I implement y=e*logx and sin^2 (30) + cos^2(30) in Matlab?
Trig2.PNG
Trig1.PNG

Best Answer

>> x = 1.2;
>> y = exp(log(x))
y = 1.2000
>> sind(30).^2 + cosd(30).^2
ans = 1