added docstrings

parent f9bfcf3d
......@@ -2,24 +2,30 @@ import math
def fn_sin(x: float) -> float:
"""Синус X"""
return math.sin(x)
def fn_cos(x: float) -> float:
"""Косинус X"""
return math.cos(x)
def fn_ln(x: float) -> float:
"""Натуральный логарифм X"""
return math.log(x)
def fn_sqrt(x: float) -> float:
"""Квадратный корень X"""
return math.sqrt(x)
def fn_square(x: float) -> float:
"""Квадрат X"""
return x ** 2
def fn_cube(x: float) -> float:
"""Куб X"""
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