mathai 2.0.0__tar.gz → 2.0.2__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 (38) hide show
  1. {mathai-2.0.0 → mathai-2.0.2}/PKG-INFO +1 -1
  2. {mathai-2.0.0 → mathai-2.0.2}/mathai/formula_compiler.py +3 -2
  3. {mathai-2.0.0 → mathai-2.0.2}/mathai/formula_data.py +2 -1
  4. {mathai-2.0.0 → mathai-2.0.2}/mathai.egg-info/PKG-INFO +1 -1
  5. {mathai-2.0.0 → mathai-2.0.2}/setup.py +1 -1
  6. {mathai-2.0.0 → mathai-2.0.2}/README.md +0 -0
  7. {mathai-2.0.0 → mathai-2.0.2}/mathai/__init__.py +0 -0
  8. {mathai-2.0.0 → mathai-2.0.2}/mathai/apart.py +0 -0
  9. {mathai-2.0.0 → mathai-2.0.2}/mathai/base.py +0 -0
  10. {mathai-2.0.0 → mathai-2.0.2}/mathai/decision.py +0 -0
  11. {mathai-2.0.0 → mathai-2.0.2}/mathai/diff.py +0 -0
  12. {mathai-2.0.0 → mathai-2.0.2}/mathai/expand.py +0 -0
  13. {mathai-2.0.0 → mathai-2.0.2}/mathai/factor.py +0 -0
  14. {mathai-2.0.0 → mathai-2.0.2}/mathai/fraction.py +0 -0
  15. {mathai-2.0.0 → mathai-2.0.2}/mathai/integrate.py +0 -0
  16. {mathai-2.0.0 → mathai-2.0.2}/mathai/inverse.py +0 -0
  17. {mathai-2.0.0 → mathai-2.0.2}/mathai/lambda_calculus.py +0 -0
  18. {mathai-2.0.0 → mathai-2.0.2}/mathai/limit.py +0 -0
  19. {mathai-2.0.0 → mathai-2.0.2}/mathai/linear.py +0 -0
  20. {mathai-2.0.0 → mathai-2.0.2}/mathai/logic.py +0 -0
  21. {mathai-2.0.0 → mathai-2.0.2}/mathai/matrix.py +0 -0
  22. {mathai-2.0.0 → mathai-2.0.2}/mathai/ml.py +0 -0
  23. {mathai-2.0.0 → mathai-2.0.2}/mathai/mlscalar.py +0 -0
  24. {mathai-2.0.0 → mathai-2.0.2}/mathai/ode.py +0 -0
  25. {mathai-2.0.0 → mathai-2.0.2}/mathai/parser.py +0 -0
  26. {mathai-2.0.0 → mathai-2.0.2}/mathai/pde.py +0 -0
  27. {mathai-2.0.0 → mathai-2.0.2}/mathai/printeq.py +0 -0
  28. {mathai-2.0.0 → mathai-2.0.2}/mathai/qm.py +0 -0
  29. {mathai-2.0.0 → mathai-2.0.2}/mathai/simplify.py +0 -0
  30. {mathai-2.0.0 → mathai-2.0.2}/mathai/statistics.py +0 -0
  31. {mathai-2.0.0 → mathai-2.0.2}/mathai/test.py +0 -0
  32. {mathai-2.0.0 → mathai-2.0.2}/mathai/tool.py +0 -0
  33. {mathai-2.0.0 → mathai-2.0.2}/mathai/trig.py +0 -0
  34. {mathai-2.0.0 → mathai-2.0.2}/mathai/univariate_inequality.py +0 -0
  35. {mathai-2.0.0 → mathai-2.0.2}/mathai.egg-info/SOURCES.txt +0 -0
  36. {mathai-2.0.0 → mathai-2.0.2}/mathai.egg-info/dependency_links.txt +0 -0
  37. {mathai-2.0.0 → mathai-2.0.2}/mathai.egg-info/top_level.txt +0 -0
  38. {mathai-2.0.0 → mathai-2.0.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mathai
3
- Version: 2.0.0
3
+ Version: 2.0.2
4
4
  Summary: Mathematics solving Ai tailored to NCERT
5
5
  Home-page: https://github.com/infinity390/mathai
6
6
  Requires-Python: >=3.7
@@ -275,7 +275,8 @@ def structure(
275
275
  for associativity in hh:
276
276
  varlist = {}
277
277
  ignore = []
278
- out2 = helper(copy.deepcopy(equation), item)
278
+ out2 = helper(copy.deepcopy(equation), copy.deepcopy(item))
279
+ varlist = {}
279
280
  out = helper(copy.deepcopy(equation), item)
280
281
  varlist.update(upd)
281
282
  d = []
@@ -321,7 +322,7 @@ def structure(
321
322
  s = "\tif " + print_code(out2) + ":\n"
322
323
  u = "\t\tif " + print_code(out) + ":\n"
323
324
  t = "\t\t\treturn " + print_code2(local_formula_out) + "\n"
324
- final_output += s + t
325
+ final_output += s + u + t
325
326
  return final_output
326
327
  def convert2(eq):
327
328
 
@@ -14,18 +14,19 @@ formula_data = {}
14
14
  # negative constraint
15
15
  # associative arity
16
16
  formula = """
17
+ integrate(1/(a*x+b),x) log(abs(a*x+b))/a x _ [a,b] _ [a,0] _ _ 6
17
18
  integrate((a*x+b)^c,x) (a*x+b)^(c+1)/(a*(c+1)) x _ [a,b,c] _ [[a,0],[c,-1]] _ _ 1
18
19
  // dummy
19
20
 
20
21
  integrate(x^2*e^(a*x+b),x) ((x^2/a)-(2*x/(a^2))+(2/(a^3)))*e^(a*x+b) x _ [a,b] _ [a,0] _ _ 6
21
22
  integrate(x*e^(a*x+b),x) ((x/a)-(1/(a^2)))*e^(a*x+b) x _ [a,b] _ [a,0] _ _ 6
22
23
  integrate(e^(a*x+b),x) e^(a*x+b)/a x _ [a,b] _ [a,0] _ _ 6
24
+ integrate(1/(a*x+b),x) log(abs(a*x+b))/a x _ [a,b] _ [a,0] _ _ 6
23
25
  integrate((a*x+b)^c,x) (a*x+b)^(c+1)/(a*(c+1)) x _ [a,b,c] _ [[a,0],[c,-1]] _ _ 1
24
26
  integrate(1/cos(a*x+b)^2,x) tan(a*x+b)/a x _ [a,b] _ [a,0] _ _ 2
25
27
  integrate(1/sin(a*x+b)^2,x) -cot(a*x+b)/a x _ [a,b] _ [a,0] _ _ 2
26
28
  integrate(1/cos(a*x+b),x) log(abs((1+sin(a*x+b))/cos(a*x+b)))/a x _ [a,b] _ [a,0] _ _ 2
27
29
  integrate(1/sin(a*x+b),x) log(abs(tan((a*x+b)/2)))/a x _ [a,b] _ [a,0] _ _ 2
28
- integrate(1/(a*x+b),x) log(abs(a*x+b))/a x _ [a,b] _ [a,0] _ _ 6
29
30
  integrate(sin(a*x+b)^2/cos(a*x+b)^2,x) tan(a*x+b)/a-x x _ [a,b] _ [a,0] _ _ 2
30
31
  integrate(sin(a*x+b)/(cos(a*x+b)^2),x) 1/(a*cos(a*x+b)) x _ [a,b] _ [a,0] _ _ 2
31
32
  integrate(sin(a*x+b),x) -cos(a*x+b)/a x _ [a,b] _ [a,0] _ _ 6
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mathai
3
- Version: 2.0.0
3
+ Version: 2.0.2
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 pathlib import Path
3
3
 
4
4
  setup(
5
5
  name="mathai",
6
- version="2.0.0",
6
+ version="2.0.2",
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