added docstrings

parent f9bfcf3d
...@@ -2,24 +2,30 @@ import math ...@@ -2,24 +2,30 @@ import math
def fn_sin(x: float) -> float: def fn_sin(x: float) -> float:
"""Синус X"""
return math.sin(x) return math.sin(x)
def fn_cos(x: float) -> float: def fn_cos(x: float) -> float:
"""Косинус X"""
return math.cos(x) return math.cos(x)
def fn_ln(x: float) -> float: def fn_ln(x: float) -> float:
"""Натуральный логарифм X"""
return math.log(x) return math.log(x)
def fn_sqrt(x: float) -> float: def fn_sqrt(x: float) -> float:
"""Квадратный корень X"""
return math.sqrt(x) return math.sqrt(x)
def fn_square(x: float) -> float: def fn_square(x: float) -> float:
"""Квадрат X"""
return x ** 2 return x ** 2
def fn_cube(x: float) -> float: def fn_cube(x: float) -> float:
"""Куб X"""
return x ** 3 return x ** 3
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment