mathai 0.3.6__tar.gz → 0.3.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.
Files changed (30) hide show
  1. {mathai-0.3.6 → mathai-0.3.7}/PKG-INFO +1 -1
  2. {mathai-0.3.6 → mathai-0.3.7}/mathai/integrate.py +7 -3
  3. {mathai-0.3.6 → mathai-0.3.7}/mathai.egg-info/PKG-INFO +1 -1
  4. {mathai-0.3.6 → mathai-0.3.7}/setup.py +1 -1
  5. {mathai-0.3.6 → mathai-0.3.7}/README.md +0 -0
  6. {mathai-0.3.6 → mathai-0.3.7}/mathai/__init__.py +0 -0
  7. {mathai-0.3.6 → mathai-0.3.7}/mathai/apart.py +0 -0
  8. {mathai-0.3.6 → mathai-0.3.7}/mathai/base.py +0 -0
  9. {mathai-0.3.6 → mathai-0.3.7}/mathai/console.py +0 -0
  10. {mathai-0.3.6 → mathai-0.3.7}/mathai/diff.py +0 -0
  11. {mathai-0.3.6 → mathai-0.3.7}/mathai/expand.py +0 -0
  12. {mathai-0.3.6 → mathai-0.3.7}/mathai/factor.py +0 -0
  13. {mathai-0.3.6 → mathai-0.3.7}/mathai/fraction.py +0 -0
  14. {mathai-0.3.6 → mathai-0.3.7}/mathai/inverse.py +0 -0
  15. {mathai-0.3.6 → mathai-0.3.7}/mathai/limit.py +0 -0
  16. {mathai-0.3.6 → mathai-0.3.7}/mathai/linear.py +0 -0
  17. {mathai-0.3.6 → mathai-0.3.7}/mathai/logic.py +0 -0
  18. {mathai-0.3.6 → mathai-0.3.7}/mathai/parser.py +0 -0
  19. {mathai-0.3.6 → mathai-0.3.7}/mathai/printeq.py +0 -0
  20. {mathai-0.3.6 → mathai-0.3.7}/mathai/search.py +0 -0
  21. {mathai-0.3.6 → mathai-0.3.7}/mathai/simplify.py +0 -0
  22. {mathai-0.3.6 → mathai-0.3.7}/mathai/structure.py +0 -0
  23. {mathai-0.3.6 → mathai-0.3.7}/mathai/tool.py +0 -0
  24. {mathai-0.3.6 → mathai-0.3.7}/mathai/trig.py +0 -0
  25. {mathai-0.3.6 → mathai-0.3.7}/mathai/univariate_inequality.py +0 -0
  26. {mathai-0.3.6 → mathai-0.3.7}/mathai.egg-info/SOURCES.txt +0 -0
  27. {mathai-0.3.6 → mathai-0.3.7}/mathai.egg-info/dependency_links.txt +0 -0
  28. {mathai-0.3.6 → mathai-0.3.7}/mathai.egg-info/requires.txt +0 -0
  29. {mathai-0.3.6 → mathai-0.3.7}/mathai.egg-info/top_level.txt +0 -0
  30. {mathai-0.3.6 → mathai-0.3.7}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mathai
3
- Version: 0.3.6
3
+ Version: 0.3.7
4
4
  Summary: Mathematics solving Ai tailored to NCERT
5
5
  Home-page: https://github.com/infinity390/mathai4
6
6
  Author: educated indians are having a low iq and are good for nothing
@@ -104,8 +104,6 @@ def handle_try(eq):
104
104
  else:
105
105
  return TreeNode(eq.name, [handle_try(child) for child in eq.children])
106
106
  def inteq(eq):
107
- if "f_ref" not in str_form(eq):
108
- return eq
109
107
  if eq.name == "f_try":
110
108
  eq2 = None
111
109
  output = []
@@ -113,13 +111,19 @@ def inteq(eq):
113
111
  if child.name == "f_ref":
114
112
  eq2 = child.children[0]
115
113
  break
114
+ if eq2 is None:
115
+ return eq
116
116
  for child in eq.children:
117
117
  if child.name == "f_ref":
118
118
  output.append(child)
119
119
  else:
120
120
  eq3 = simplify(expand(simplify(eq2 - child)))
121
121
  if contain(eq3, eq2):
122
- output.append(inverse(eq3, str_form(eq2)))
122
+ out = inverse(eq3, str_form(eq2))
123
+ if out is None:
124
+ output.append(child)
125
+ else:
126
+ output.append(out)
123
127
  else:
124
128
  output.append(child)
125
129
  return TreeNode("f_try", output)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mathai
3
- Version: 0.3.6
3
+ Version: 0.3.7
4
4
  Summary: Mathematics solving Ai tailored to NCERT
5
5
  Home-page: https://github.com/infinity390/mathai4
6
6
  Author: educated indians are having a low iq and are good for nothing
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="mathai",
5
- version="0.3.6",
5
+ version="0.3.7",
6
6
  description="Mathematics solving Ai tailored to NCERT",
7
7
  long_description=open("README.md").read(),
8
8
  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