My code is:
function onex(y)cos(y)*cos(y)-sin(y)*sin(y)end
When I insert y=pi/4 The result is:
>> onex(pi/4)ans = 2.2204e-16
Does anybody has any suggestions? Thank you in advance!
functiontrigonometric
function onex(y)cos(y)*cos(y)-sin(y)*sin(y)end
>> onex(pi/4)ans = 2.2204e-16
Best Answer