MATLAB: Does the Trigonometric Function Block in Simulink 5.1 (R13SP1) produce incorrect results

blockcoscosinefunctionlargesimulinksinsinetrigonometric

When I use the Trigonometric Function block to calculate the sine or cosine of a number greater than 2^63, I receive a result that is much greater than 1.0.

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
This has been verified as a bug in Simulink 5.1 (R13SP1) in the way that the SINE and COSINE functions from the Trigonometric Function Block handle large input values.
There are currently no known workarounds.