[過去ログ]
Qiita 3 - キータぞ、来たぞ、キータだぞー (1002レス)
Qiita 3 - キータぞ、来たぞ、キータだぞー http://mevius.5ch.net/test/read.cgi/tech/1685235361/
上
下
前次
1-
新
通常表示
512バイト分割
レス栞
抽出解除
レス栞
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
リロード規制
です。10分ほどで解除するので、
他のブラウザ
へ避難してください。
702: デフォルトの名無しさん [sage] 2023/12/10(日) 00:04:11.75 ID:zoYXXcKe >>699 こうなった #include <iostream> #include <boost/math/special_functions/sin_pi.hpp> #include <boost/math/special_functions/cos_pi.hpp> int main() { for (int i = 0; i <= 12; i++) { double s = boost::math::sin_pi(i / 6.0); double c = boost::math::cos_pi(i / 6.0); printf("sin(%d/6π) = %19.16f cos(%d/6π) = %19.16f\n", i, s, i, c); } } sin(0/6π) = 0.0000000000000000 cos(0/6π) = 1.0000000000000000 sin(1/6π) = 0.5000000000000000 cos(1/6π) = 0.8660254037844387 sin(2/6π) = 0.8660254037844386 cos(2/6π) = 0.5000000000000000 sin(3/6π) = 1.0000000000000000 cos(3/6π) = 0.0000000000000000 sin(4/6π) = 0.8660254037844387 cos(4/6π) = -0.4999999999999999 sin(5/6π) = 0.4999999999999999 cos(5/6π) = -0.8660254037844387 sin(6/6π) = -0.0000000000000000 cos(6/6π) = -1.0000000000000000 sin(7/6π) = -0.5000000000000002 cos(7/6π) = -0.8660254037844385 sin(8/6π) = -0.8660254037844385 cos(8/6π) = -0.5000000000000002 sin(9/6π) = -1.0000000000000000 cos(9/6π) = 0.0000000000000000 sin(10/6π) = -0.8660254037844385 cos(10/6π) = 0.5000000000000002 sin(11/6π) = -0.5000000000000002 cos(11/6π) = 0.8660254037844385 sin(12/6π) = 0.0000000000000000 cos(12/6π) = 1.0000000000000000 http://mevius.5ch.net/test/read.cgi/tech/1685235361/702
704: 702 [sage] 2023/12/10(日) 02:04:39.98 ID:zoYXXcKe >>703 分かってるよ 元の話 >>621-623に対応するのは1/6だからやってみただけ http://mevius.5ch.net/test/read.cgi/tech/1685235361/704
706: デフォルトの名無しさん [sage] 2023/12/10(日) 04:18:03.31 ID:IOBSQ4pi >>702 sin((1/6)π)とsin((5/6)π)が一致しないことを気にしてもしかたないと Boostをつくってる人たちも考えていたってことだろうな http://mevius.5ch.net/test/read.cgi/tech/1685235361/706
メモ帳
(0/65535文字)
上
下
前次
1-
新
書
関
写
板
覧
索
設
栞
歴
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.040s