1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

tanθ の 計算方法(Python)

Posted at

今回はhmathで使用されているtanθの計算方法をご紹介します。

計算式

hmathは次の数式でtanθを定義しています。

\tan θ = {\frac{\sin θ}{\cos θ}}

プログラム

hmath内では次のプログラムで計算しています。

tan.py
import hmath
def tan(θ):
    return hmath.div(hmath.sin(θ), hmath.cos(θ))

最後まで見ていだきありがとうございました。
ぜひ活用してみてください。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?