学習環境
- Surface 3 (4G LTE)、Surface 3 タイプ カバー、Surface ペン(端末)
- Windows 10 Pro (OS)
- 数式入力ソフト(TeX, MathML): MathType
- MathML対応ブラウザ: Firefox、Safari
- MathML非対応ブラウザ(Internet Explorer, Google Chrome...)用JavaScript Library: MathJax
- Pythonからはじめる数学入門(参考書籍)
解析入門〈1〉(松坂 和夫(著)、岩波書店)の第5章(各種の初等関数)、5.3(三角関数)、問題5.3-5.を取り組んでみる。
コード(Emacs)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from sympy import sqrt, sin, cos, tan, pi, pprint
print('6.')
for op in [sin, cos, tan]:
pprint(op(pi / 12))
print('7.')
for op in [sin, cos, tan]:
pprint(op(pi / 8))
入出力結果(Terminal, IPython)
$ ./sample6.py
6.
√2 √6
- ── + ──
4 4
√2 √6
── + ──
4 4
-√3 + 2
7.
__________
╱ √2 1
╱ - ── + ─
╲╱ 4 2
________
╱ √2 1
╱ ── + ─
╲╱ 4 2
⎛ √2 ⎞
√2⋅⎜- ── + 1⎟
⎝ 2 ⎠
$
0 コメント:
コメントを投稿