numplot 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- numplot-0.0.1/PKG-INFO +44 -0
- numplot-0.0.1/README.md +17 -0
- numplot-0.0.1/numplot/__init__.py +7 -0
- numplot-0.0.1/numplot/task_1.py +38 -0
- numplot-0.0.1/numplot/task_2.py +5 -0
- numplot-0.0.1/numplot/task_3.py +5 -0
- numplot-0.0.1/numplot/task_4.py +5 -0
- numplot-0.0.1/numplot/task_5.py +5 -0
- numplot-0.0.1/numplot.egg-info/PKG-INFO +44 -0
- numplot-0.0.1/numplot.egg-info/SOURCES.txt +14 -0
- numplot-0.0.1/numplot.egg-info/dependency_links.txt +1 -0
- numplot-0.0.1/numplot.egg-info/requires.txt +1 -0
- numplot-0.0.1/numplot.egg-info/top_level.txt +1 -0
- numplot-0.0.1/setup.cfg +4 -0
- numplot-0.0.1/setup.py +30 -0
numplot-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: numplot
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Extension for math
|
|
5
|
+
Home-page: https://github.com/EgorZhizhlo/TASK_CONTROL
|
|
6
|
+
Author: amogusbazed
|
|
7
|
+
Author-email: amogusbazed@gmail.com
|
|
8
|
+
Project-URL: GitHub, https://github.com/EgorZhizhlo/TASK_CONTROL
|
|
9
|
+
Keywords: files speedfiles
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Requires-Python: >=3.6
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: requests>=2.25.1
|
|
16
|
+
Dynamic: author
|
|
17
|
+
Dynamic: author-email
|
|
18
|
+
Dynamic: classifier
|
|
19
|
+
Dynamic: description
|
|
20
|
+
Dynamic: description-content-type
|
|
21
|
+
Dynamic: home-page
|
|
22
|
+
Dynamic: keywords
|
|
23
|
+
Dynamic: project-url
|
|
24
|
+
Dynamic: requires-dist
|
|
25
|
+
Dynamic: requires-python
|
|
26
|
+
Dynamic: summary
|
|
27
|
+
|
|
28
|
+
# Numplot File Library #
|
|
29
|
+
|
|
30
|
+
## What is this? ##
|
|
31
|
+
The module allows you to work with files in just one line of code, without the need to manually open and close the file each time
|
|
32
|
+
|
|
33
|
+
## Quick Guide ##
|
|
34
|
+
The module is based on the following structure:
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
f = open('data.txt')
|
|
38
|
+
data = f.readlines()
|
|
39
|
+
f.close()
|
|
40
|
+
|
|
41
|
+
Which Python provides by standard.
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
----------
|
numplot-0.0.1/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Numplot File Library #
|
|
2
|
+
|
|
3
|
+
## What is this? ##
|
|
4
|
+
The module allows you to work with files in just one line of code, without the need to manually open and close the file each time
|
|
5
|
+
|
|
6
|
+
## Quick Guide ##
|
|
7
|
+
The module is based on the following structure:
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
f = open('data.txt')
|
|
11
|
+
data = f.readlines()
|
|
12
|
+
f.close()
|
|
13
|
+
|
|
14
|
+
Which Python provides by standard.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
----------
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
def task_1():
|
|
2
|
+
text = """
|
|
3
|
+
Абсолютно непрерывная случайная величина X может принимать значения только в отрезке [4,7]. На этом отрезке плотность распределения случайной величины X имеет вид: f(x)=C(1+3x0,5+6x0,7+9x0,9)1,5, где C – положительная константа. Найдите: 1) константу C; 2) математическое ожидание E(X); 3) стандартное отклонение σX; 4) квантиль уровня 0,8 распределения X.
|
|
4
|
+
import sympy as sp
|
|
5
|
+
|
|
6
|
+
l, r = [4, 7]
|
|
7
|
+
|
|
8
|
+
# Определение переменных
|
|
9
|
+
x = sp.symbols('x')
|
|
10
|
+
C = sp.symbols('C')
|
|
11
|
+
|
|
12
|
+
# Плотность вероятности
|
|
13
|
+
f_x = C * (1 + 3 * x**0.5 + 6 * x**0.7 + 9 * x**0.9)**1.5
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# 1. Нахождение константы C
|
|
17
|
+
normalization_integral = sp.integrate(f_x, (x, l, r))
|
|
18
|
+
C_value = sp.solve(normalization_integral - 1, C)[0]
|
|
19
|
+
|
|
20
|
+
# 2. Математическое ожидание E(X)
|
|
21
|
+
f_x_with_C = f_x.subs(C, C_value)
|
|
22
|
+
E_X = sp.integrate(x * f_x_with_C, (x, l, r))
|
|
23
|
+
|
|
24
|
+
# 3. Стандартное отклонение σX
|
|
25
|
+
E_X2 = sp.integrate(x**2 * f_x_with_C, (x, l, r))
|
|
26
|
+
variance_X = E_X2 - E_X**2
|
|
27
|
+
std_dev_X = sp.sqrt(variance_X)
|
|
28
|
+
|
|
29
|
+
# 4. Квантиль уровня 0.9
|
|
30
|
+
quantile_eq = sp.integrate(f_x_with_C, (x, l, x)) - 0.8
|
|
31
|
+
quantile_90 = sp.nsolve(quantile_eq, x, l + 1) # Начальное приближение x=5
|
|
32
|
+
|
|
33
|
+
print("Нахождение константы C", round(C_value, 5))
|
|
34
|
+
print("Математическое ожидание E(X)", round(E_X.evalf(), 3))
|
|
35
|
+
print("Стандартное отклонение σX", round(std_dev_X.evalf(), 3))
|
|
36
|
+
print("Квантиль уровня 0.9", round(quantile_90, 3))")"""
|
|
37
|
+
|
|
38
|
+
return text
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: numplot
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Extension for math
|
|
5
|
+
Home-page: https://github.com/EgorZhizhlo/TASK_CONTROL
|
|
6
|
+
Author: amogusbazed
|
|
7
|
+
Author-email: amogusbazed@gmail.com
|
|
8
|
+
Project-URL: GitHub, https://github.com/EgorZhizhlo/TASK_CONTROL
|
|
9
|
+
Keywords: files speedfiles
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Requires-Python: >=3.6
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: requests>=2.25.1
|
|
16
|
+
Dynamic: author
|
|
17
|
+
Dynamic: author-email
|
|
18
|
+
Dynamic: classifier
|
|
19
|
+
Dynamic: description
|
|
20
|
+
Dynamic: description-content-type
|
|
21
|
+
Dynamic: home-page
|
|
22
|
+
Dynamic: keywords
|
|
23
|
+
Dynamic: project-url
|
|
24
|
+
Dynamic: requires-dist
|
|
25
|
+
Dynamic: requires-python
|
|
26
|
+
Dynamic: summary
|
|
27
|
+
|
|
28
|
+
# Numplot File Library #
|
|
29
|
+
|
|
30
|
+
## What is this? ##
|
|
31
|
+
The module allows you to work with files in just one line of code, without the need to manually open and close the file each time
|
|
32
|
+
|
|
33
|
+
## Quick Guide ##
|
|
34
|
+
The module is based on the following structure:
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
f = open('data.txt')
|
|
38
|
+
data = f.readlines()
|
|
39
|
+
f.close()
|
|
40
|
+
|
|
41
|
+
Which Python provides by standard.
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
----------
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
setup.cfg
|
|
3
|
+
setup.py
|
|
4
|
+
numplot/__init__.py
|
|
5
|
+
numplot/task_1.py
|
|
6
|
+
numplot/task_2.py
|
|
7
|
+
numplot/task_3.py
|
|
8
|
+
numplot/task_4.py
|
|
9
|
+
numplot/task_5.py
|
|
10
|
+
numplot.egg-info/PKG-INFO
|
|
11
|
+
numplot.egg-info/SOURCES.txt
|
|
12
|
+
numplot.egg-info/dependency_links.txt
|
|
13
|
+
numplot.egg-info/requires.txt
|
|
14
|
+
numplot.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
requests>=2.25.1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
numplot
|
numplot-0.0.1/setup.cfg
ADDED
numplot-0.0.1/setup.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def readme():
|
|
5
|
+
with open('README.md', 'r') as f:
|
|
6
|
+
return f.read()
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
setup(
|
|
10
|
+
name='numplot',
|
|
11
|
+
version='0.0.1',
|
|
12
|
+
author='amogusbazed',
|
|
13
|
+
author_email='amogusbazed@gmail.com',
|
|
14
|
+
description='Extension for math',
|
|
15
|
+
long_description=readme(),
|
|
16
|
+
long_description_content_type='text/markdown',
|
|
17
|
+
url='https://github.com/EgorZhizhlo/TASK_CONTROL',
|
|
18
|
+
packages=find_packages(),
|
|
19
|
+
install_requires=['requests>=2.25.1'],
|
|
20
|
+
classifiers=[
|
|
21
|
+
'Programming Language :: Python :: 3.13',
|
|
22
|
+
'License :: OSI Approved :: MIT License',
|
|
23
|
+
'Operating System :: OS Independent'
|
|
24
|
+
],
|
|
25
|
+
keywords='files speedfiles ',
|
|
26
|
+
project_urls={
|
|
27
|
+
'GitHub': 'https://github.com/EgorZhizhlo/TASK_CONTROL'
|
|
28
|
+
},
|
|
29
|
+
python_requires='>=3.6'
|
|
30
|
+
)
|