2019年4月17日水曜日

学習環境

解析入門 原書第3版 (S.ラング(著)、松坂 和夫(翻訳)、片山 孝次(翻訳)、岩波書店)の第4部(級数)、第14章(テイラーの公式)、6(逆正接関数)の練習問題1の解答を求めてみる。


  1. tan x + y = sin x + y cos x + y = sin x cos y + cos x sin y cos x cos y - sin x sin y = sin x cos x + sin y cos y 1 - sin x sin y cos x cos y = tan x + tan y 1 - tan x tan y

コード

Python 3

#!/usr/bin/env python3
from sympy import pprint, symbols, tan
from sympy.plotting import plot3d

print('1.')
x, y = symbols('x, y')
p = plot3d(tan(x + y), show=False)
p.xlabel = x
p.ylabel = y

p.show()
p.save('sample1.png')

入出力結果(cmd(コマンドプロンプト)、Terminal、Jupyter(IPython))

C:\Users\...>py sample1.py
1.

C:\Users\...>

0 コメント:

コメントを投稿