numplot 0.0.1__py3-none-any.whl

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/__init__.py ADDED
@@ -0,0 +1,7 @@
1
+ from .task_1 import task_1
2
+ from .task_2 import task_2
3
+ from .task_3 import task_3
4
+ from .task_4 import task_4
5
+ from .task_5 import task_5
6
+
7
+ __all__ = ['task_1', 'task_2', 'task_3', 'task_4', 'task_5']
numplot/task_1.py ADDED
@@ -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
numplot/task_2.py ADDED
@@ -0,0 +1,5 @@
1
+ def task_2():
2
+ text = """
3
+ task_2"""
4
+
5
+ return text
numplot/task_3.py ADDED
@@ -0,0 +1,5 @@
1
+ def task_3():
2
+ text = """
3
+ task_3"""
4
+
5
+ return text
numplot/task_4.py ADDED
@@ -0,0 +1,5 @@
1
+ def task_4():
2
+ text = """
3
+ task_4"""
4
+
5
+ return text
numplot/task_5.py ADDED
@@ -0,0 +1,5 @@
1
+ def task_5():
2
+ text = """
3
+ task_5"""
4
+
5
+ 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,10 @@
1
+ numplot/__init__.py,sha256=FHNS7nvRUC4lMp_FhtnXxuiImdMUz8A2yQqAinOh7iQ,202
2
+ numplot/task_1.py,sha256=oBcBNyCVV-AwvY97cJjUFhpfnqvkkHCjxPUZmep55IU,2149
3
+ numplot/task_2.py,sha256=dNgn2iBLD_ojnUjxQWxtCKv3jik5Fs_0-rAN7uS4r2M,63
4
+ numplot/task_3.py,sha256=ZyqADZ_MRaJTwUAbHLdcnoSM4HOIrzUWbDSfeWVTYss,63
5
+ numplot/task_4.py,sha256=6EHDNbmkR-LETkX4IcPSTKSKLo082eaDHvTcYrCoC0Y,63
6
+ numplot/task_5.py,sha256=EB4nKzPQIUm3SLKiVcu0DvU72SHHM2k3P7BKh1pUeJc,63
7
+ numplot-0.0.1.dist-info/METADATA,sha256=4WWKM0cdHxPG9SajqS1HJVINywfABpFuzVzciGRUfus,1173
8
+ numplot-0.0.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
9
+ numplot-0.0.1.dist-info/top_level.txt,sha256=wd3yvwOsH8IF99-WKjbfPkcXIEeCaufh-FfG7GGJo2g,8
10
+ numplot-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (75.8.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ numplot