Pythonで$${\sin^2\theta}$$と$${\cos^2\theta}$$のグラフを描きます。 いずれも、2乗するので当然$${\geqq0}$$になりますが、きれいに上下で対称になります。$${\sin^2\theta+\cos^2\theta=1}$$というのは三角関数の最も基本的な定理ですが、改めて目で見るととても不思議です。
前回、sin(サイン)について、私たちの身の回りで使われていることなどを紹介しました。 今回は、cos(コサイン)についても見てみましょう。 などは記憶にある方も多いかと思います。 cosは単位円で考えると「x座標」。 サイン(sin)は「y座標」。
This post is about how sin and cos are calculated in the c language standard math library on a typical Linux system. Because Python floats are really c doubles, what I write here will apply to Python ...