slow-starter

なにをやるにもslow start……。

mathematics-三角関数

数学1A_003

pythonを使いつつ、数学1Aの基礎を復習 # coding: utf-8 import numpy as np t = float('inf') print('deg rad sin cos tan ') print('------- ------- ------- -------- -------') fmt = ' '.join(['%7.2f'] * 5) for deg in range(0, 361, 30): rad = np.r…

数学1A_002

pythonを使いつつ、数学1Aの基礎を復習 代表的な角(30°,45°,60°)の三角比(sin,cos,tan) import numpy as np print("-"*50) # -------------------------------------------------- ## √2、√3の計算 root2 = np.sqrt(2) print(root2) # 1.41421356237 root3 =…

数学1A_001

pythonを使いつつ、数学1Aの基礎を復習 円周率(π) import numpy as np import math print("-"*50) # -------------------------------------------------- # numpy と mathの比較 ## piの値は円周率 print(np.pi) print(math.pi) # 結果はどちらも同じ # 3.1…