Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
ode-solver-2021
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Величко Арсений Александрович
ode-solver-2021
Commits
2a1cb5a6
Commit
2a1cb5a6
authored
Dec 25, 2021
by
Величко Арсений Александрович
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added docstrings
parent
f9bfcf3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
functions.py
src/functions/functions.py
+6
-0
No files found.
src/functions/functions.py
View file @
2a1cb5a6
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment