In this blog post, we explore incorrect calculations of the secant function sec(x) and cosecant function csc(x) for large numbers in MATLAB.
Example 1. Given that x = 1234567890888777.123, calculate sec(x) and csc(x).
Using MATLAB, I computed the values of sec(x) and csc(x) at x = 1234567890888777.123. The result is shown in the following screenshot.
).
Therefore, out of the 32 significant digits in the two outputs from MATLAB, only 1 digit is correct. The error rates are 15/16 = 93.75% and 16/16 = 100%, respectively.
SOCIAL SHARE CARD GENERATOR