実例 サインとコサイン

サインとコサイン

この例は、サインとコサインの数学的関数を示しています。

アニメーションは、単位円(半径1の円)を中心にした均一な円運動を示します。x軸から測定された任意の角度が円上の点を決定します。角度のコサインとサインは、それぞれその点のx座標とy座標として定義されます。

Creative Commons BY-NC-SA license badge

サインとコサイン: Revised by Darren Kessner, Malay Vasa. Edited and maintained by p5.js Contributors and Processing Foundation. Licensed under CC BY-NC-SA 4.0.

You can find the code history of these examples here: pre-2023 example, 2023 code. You can suggest improvements by contributing to the current website!