matlabのtanとtandの違いを簡単に見てみる。
まずは89から90どの範囲で重ねて比較。ほとんど同じ値が得られている。

2つの方法の誤差。通常誤差は0であるが微妙に生じている。90度に近くなるにつれて大きくなるようだ。

以下コード
td=linspace(89,90,1000);
tr=deg2rad(td);
figure
semilogy(td,tand(td))
hold on
semilogy(td,tan(tr))
grid on
figure
semilogy(td,abs(tand(td)-tan(tr)));
grid on
コメント