mathai 2.4.0__tar.gz → 2.4.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.
Files changed (42) hide show
  1. {mathai-2.4.0 → mathai-2.4.1}/PKG-INFO +1 -1
  2. {mathai-2.4.0 → mathai-2.4.1}/mathai/integrate.py +1 -1
  3. {mathai-2.4.0 → mathai-2.4.1}/mathai/limit.py +3 -2
  4. {mathai-2.4.0 → mathai-2.4.1}/mathai/qm.py +3 -3
  5. {mathai-2.4.0 → mathai-2.4.1}/mathai.egg-info/PKG-INFO +1 -1
  6. {mathai-2.4.0 → mathai-2.4.1}/setup.py +1 -1
  7. {mathai-2.4.0 → mathai-2.4.1}/README.md +0 -0
  8. {mathai-2.4.0 → mathai-2.4.1}/mathai/__init__.py +0 -0
  9. {mathai-2.4.0 → mathai-2.4.1}/mathai/apart.py +0 -0
  10. {mathai-2.4.0 → mathai-2.4.1}/mathai/base.py +0 -0
  11. {mathai-2.4.0 → mathai-2.4.1}/mathai/benchmark.py +0 -0
  12. {mathai-2.4.0 → mathai-2.4.1}/mathai/decision.py +0 -0
  13. {mathai-2.4.0 → mathai-2.4.1}/mathai/diff.py +0 -0
  14. {mathai-2.4.0 → mathai-2.4.1}/mathai/electronic.py +0 -0
  15. {mathai-2.4.0 → mathai-2.4.1}/mathai/expand.py +0 -0
  16. {mathai-2.4.0 → mathai-2.4.1}/mathai/factor.py +0 -0
  17. {mathai-2.4.0 → mathai-2.4.1}/mathai/formula_applier.py +0 -0
  18. {mathai-2.4.0 → mathai-2.4.1}/mathai/formula_compiler.py +0 -0
  19. {mathai-2.4.0 → mathai-2.4.1}/mathai/fraction.py +0 -0
  20. {mathai-2.4.0 → mathai-2.4.1}/mathai/graphics.py +0 -0
  21. {mathai-2.4.0 → mathai-2.4.1}/mathai/inverse.py +0 -0
  22. {mathai-2.4.0 → mathai-2.4.1}/mathai/lambda_calculus.py +0 -0
  23. {mathai-2.4.0 → mathai-2.4.1}/mathai/linear.py +0 -0
  24. {mathai-2.4.0 → mathai-2.4.1}/mathai/logic.py +0 -0
  25. {mathai-2.4.0 → mathai-2.4.1}/mathai/matrix.py +0 -0
  26. {mathai-2.4.0 → mathai-2.4.1}/mathai/ml.py +0 -0
  27. {mathai-2.4.0 → mathai-2.4.1}/mathai/mlscalar.py +0 -0
  28. {mathai-2.4.0 → mathai-2.4.1}/mathai/ncert_data.txt +0 -0
  29. {mathai-2.4.0 → mathai-2.4.1}/mathai/ode.py +0 -0
  30. {mathai-2.4.0 → mathai-2.4.1}/mathai/parser.py +0 -0
  31. {mathai-2.4.0 → mathai-2.4.1}/mathai/pde.py +0 -0
  32. {mathai-2.4.0 → mathai-2.4.1}/mathai/printeq.py +0 -0
  33. {mathai-2.4.0 → mathai-2.4.1}/mathai/simplify.py +0 -0
  34. {mathai-2.4.0 → mathai-2.4.1}/mathai/statistics.py +0 -0
  35. {mathai-2.4.0 → mathai-2.4.1}/mathai/test.py +0 -0
  36. {mathai-2.4.0 → mathai-2.4.1}/mathai/tool.py +0 -0
  37. {mathai-2.4.0 → mathai-2.4.1}/mathai/trig.py +0 -0
  38. {mathai-2.4.0 → mathai-2.4.1}/mathai/univariate_inequality.py +0 -0
  39. {mathai-2.4.0 → mathai-2.4.1}/mathai.egg-info/SOURCES.txt +0 -0
  40. {mathai-2.4.0 → mathai-2.4.1}/mathai.egg-info/dependency_links.txt +0 -0
  41. {mathai-2.4.0 → mathai-2.4.1}/mathai.egg-info/top_level.txt +0 -0
  42. {mathai-2.4.0 → mathai-2.4.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mathai
3
- Version: 2.4.0
3
+ Version: 2.4.1
4
4
  Summary: Mathematics solving Ai tailored to NCERT
5
5
  Home-page: https://github.com/infinity390/mathai
6
6
  Requires-Python: >=3.7
@@ -8,7 +8,7 @@ from .fraction import fraction
8
8
  from .simplify import simplify
9
9
  from .expand import expand
10
10
  from .base import *
11
- from .formula_compiler import formula_list_compiler, formula_compiler
11
+ from .formula_compiler import formula_list_compiler
12
12
  from .inverse import inverse
13
13
  from .tool import poly
14
14
  from fractions import Fraction
@@ -159,14 +159,15 @@ def is_negative(eq):
159
159
  return True
160
160
  return False
161
161
  limit3_s = """limitpinf(product(a,b),x) a*limitpinf(b,x) [] x a _ _
162
- limitpinf(x^c*e^(poly(x,d,f)),x) 0 [] x [d,f] _ _
162
+ limitpinf(x^c*e^(poly(x,d,f)),x) 0 [] x [d,f,c] _ _
163
163
  limitpinf(x*e^(poly(x,d,f)),x) 0 [] x [d,f] _ _
164
164
  limitpinf(e^(poly(x,d,f)),x) 0 [] x [d,f] _ _
165
- limitpinf(x^c,x) 0 [] x _ _ _
165
+ limitpinf(x^c,x) 0 [] x c _ _
166
166
  limitpinf(sum(a,b),x) limitpinf(a,x)+limitpinf(b,x) [] x _ _ _
167
167
  limitpinf(a,x) a [] x a _ _"""
168
168
 
169
169
  limit3 = formula_list_compiler(limit3_s)
170
+
170
171
  def solve_inf(eq):
171
172
  stack = [(eq, False)]
172
173
  result = {}
@@ -18,7 +18,7 @@ from .integrate import integrate_formula, integrate_full
18
18
  from .integrate import normalize as integration_basic
19
19
 
20
20
  from .diff import diff
21
- from .formula_applier import formula_applier
21
+ from .formula_compiler import formula_list_compiler
22
22
 
23
23
  def helium_gse():
24
24
  basic_int = lambda x: dowhile(x, lambda y: expand(simplify(integrate_formula(y))))
@@ -155,7 +155,7 @@ def helium_gse():
155
155
  return compute(simplify(H/e1))
156
156
 
157
157
  power_rule_s = "a^sum(b,c) a^b*a^c [] x _ _ _"
158
- power_rule = lambda x: formula_applier(x, power_rule_s)
158
+ power_rule = formula_list_compiler(power_rule_s)
159
159
 
160
160
  def hydrogen_gse():
161
161
  basic_int = lambda x: dowhile(x, lambda y: integrate_formula(simplify(expand(simplify(power_rule(y))))))
@@ -186,7 +186,7 @@ def hydrogen_gse():
186
186
  integral_psiHpsi = TreeNode("f_integrate", [psiHpsi * parse("4")* pi * r**2, r])
187
187
  integral_psiHpsi = basic_int(integral_psiHpsi)
188
188
  a = limit1(TreeNode("f_limit", [integral_psiHpsi, r]))
189
- b = limit3(limit2(expand(TreeNode("f_limitpinf", [integral_psiHpsi, r]))))
189
+ b = limit3(simplify(expand(TreeNode("f_limitpinf", [integral_psiHpsi, r]))))
190
190
  integral_psiHpsi = algebra(b-a)
191
191
  result = integral_psiHpsi / integral_psi2
192
192
  return compute(simplify(result /e1))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mathai
3
- Version: 2.4.0
3
+ Version: 2.4.1
4
4
  Summary: Mathematics solving Ai tailored to NCERT
5
5
  Home-page: https://github.com/infinity390/mathai
6
6
  Requires-Python: >=3.7
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
3
3
 
4
4
  setup(
5
5
  name="mathai",
6
- version="2.4.0",
6
+ version="2.4.1",
7
7
  description="Mathematics solving Ai tailored to NCERT",
8
8
  long_description=Path("README.md").read_text(encoding="utf-8"),
9
9
  long_description_content_type="text/markdown",
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