mathai 2.2.6__tar.gz → 2.2.7__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.
- {mathai-2.2.6 → mathai-2.2.7}/PKG-INFO +1 -1
- {mathai-2.2.6 → mathai-2.2.7}/mathai/__init__.py +9 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai.egg-info/PKG-INFO +1 -1
- {mathai-2.2.6 → mathai-2.2.7}/mathai.egg-info/SOURCES.txt +1 -16
- {mathai-2.2.6 → mathai-2.2.7}/setup.py +4 -6
- mathai-2.2.6/mathai/formula/differentiation.marshal +0 -0
- mathai-2.2.6/mathai/formula/integration.marshal +0 -0
- mathai-2.2.6/mathai/formula/integration_trig.marshal +0 -0
- mathai-2.2.6/mathai/formula/is_integrate_subs.marshal +0 -0
- mathai-2.2.6/mathai/formula/lambda_compress.marshal +0 -0
- mathai-2.2.6/mathai/formula/lambda_expand.marshal +0 -0
- mathai-2.2.6/mathai/formula/lambda_reduce.marshal +0 -0
- mathai-2.2.6/mathai/formula/limit_infinity.marshal +0 -0
- mathai-2.2.6/mathai/formula/matrix_vectorization_calculus.marshal +0 -0
- mathai-2.2.6/mathai/formula/power_rule.marshal +0 -0
- mathai-2.2.6/mathai/formula/quadratic.marshal +0 -0
- mathai-2.2.6/mathai/formula/statistics_1.marshal +0 -0
- mathai-2.2.6/mathai/formula/statistics_2.marshal +0 -0
- mathai-2.2.6/mathai/formula/test.marshal +0 -0
- mathai-2.2.6/mathai/formula/trigonometry_misc.marshal +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/README.md +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/apart.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/base.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/decision.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/diff.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/electronic.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/expand.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/factor.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/formula_compiler.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/formula_data.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/formula_interpretor.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/fraction.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/graphics.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/integrate.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/inverse.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/lambda_calculus.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/limit.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/linear.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/logic.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/matrix.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/ml.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/mlscalar.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/ode.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/parser.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/pde.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/printeq.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/qm.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/simplify.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/statistics.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/test.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/tool.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/trig.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai/univariate_inequality.py +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai.egg-info/dependency_links.txt +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai.egg-info/requires.txt +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/mathai.egg-info/top_level.txt +0 -0
- {mathai-2.2.6 → mathai-2.2.7}/setup.cfg +0 -0
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import os
|
|
2
|
+
def _ensure_formulas_compiled():
|
|
3
|
+
formula_dir = os.path.join(os.path.dirname(__file__), "formula")
|
|
4
|
+
if not os.path.exists(formula_dir) or not any(f.endswith(".marshal") for f in os.listdir(formula_dir)):
|
|
5
|
+
print("[mathai] Compiling formulas for first-time use...")
|
|
6
|
+
from .formula_data import init_formula
|
|
7
|
+
init_formula("all", True)
|
|
8
|
+
_ensure_formulas_compiled()
|
|
9
|
+
|
|
1
10
|
from .ode import diffsolve as ode_solve
|
|
2
11
|
from .ode import diffsolve_sep as ode_shift_term
|
|
3
12
|
|
|
@@ -38,19 +38,4 @@ mathai.egg-info/PKG-INFO
|
|
|
38
38
|
mathai.egg-info/SOURCES.txt
|
|
39
39
|
mathai.egg-info/dependency_links.txt
|
|
40
40
|
mathai.egg-info/requires.txt
|
|
41
|
-
mathai.egg-info/top_level.txt
|
|
42
|
-
mathai/formula/differentiation.marshal
|
|
43
|
-
mathai/formula/integration.marshal
|
|
44
|
-
mathai/formula/integration_trig.marshal
|
|
45
|
-
mathai/formula/is_integrate_subs.marshal
|
|
46
|
-
mathai/formula/lambda_compress.marshal
|
|
47
|
-
mathai/formula/lambda_expand.marshal
|
|
48
|
-
mathai/formula/lambda_reduce.marshal
|
|
49
|
-
mathai/formula/limit_infinity.marshal
|
|
50
|
-
mathai/formula/matrix_vectorization_calculus.marshal
|
|
51
|
-
mathai/formula/power_rule.marshal
|
|
52
|
-
mathai/formula/quadratic.marshal
|
|
53
|
-
mathai/formula/statistics_1.marshal
|
|
54
|
-
mathai/formula/statistics_2.marshal
|
|
55
|
-
mathai/formula/test.marshal
|
|
56
|
-
mathai/formula/trigonometry_misc.marshal
|
|
41
|
+
mathai.egg-info/top_level.txt
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
from setuptools import setup, find_packages
|
|
2
1
|
from pathlib import Path
|
|
2
|
+
from setuptools import setup, find_packages
|
|
3
|
+
|
|
3
4
|
setup(
|
|
4
5
|
name="mathai",
|
|
5
|
-
version="2.2.
|
|
6
|
+
version="2.2.7",
|
|
6
7
|
description="Mathematics solving Ai tailored to NCERT",
|
|
7
8
|
long_description=Path("README.md").read_text(encoding="utf-8"),
|
|
8
9
|
long_description_content_type="text/markdown",
|
|
9
10
|
url="https://github.com/infinity390/mathai",
|
|
10
11
|
packages=find_packages(),
|
|
11
|
-
package_data={
|
|
12
|
-
"mathai": ["formula/*.marshal"],
|
|
13
|
-
},
|
|
14
12
|
python_requires=">=3.7",
|
|
15
13
|
install_requires=[
|
|
16
14
|
"more_itertools"
|
|
17
15
|
],
|
|
18
|
-
)
|
|
16
|
+
)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|