mathai 0.3.7__tar.gz → 0.3.8__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.7 → mathai-0.3.8}/PKG-INFO +1 -1
  2. {mathai-0.3.7 → mathai-0.3.8}/mathai/apart.py +0 -1
  3. {mathai-0.3.7 → mathai-0.3.8}/mathai/base.py +4 -0
  4. {mathai-0.3.7 → mathai-0.3.8}/mathai.egg-info/PKG-INFO +1 -1
  5. {mathai-0.3.7 → mathai-0.3.8}/setup.py +1 -1
  6. {mathai-0.3.7 → mathai-0.3.8}/README.md +0 -0
  7. {mathai-0.3.7 → mathai-0.3.8}/mathai/__init__.py +0 -0
  8. {mathai-0.3.7 → mathai-0.3.8}/mathai/console.py +0 -0
  9. {mathai-0.3.7 → mathai-0.3.8}/mathai/diff.py +0 -0
  10. {mathai-0.3.7 → mathai-0.3.8}/mathai/expand.py +0 -0
  11. {mathai-0.3.7 → mathai-0.3.8}/mathai/factor.py +0 -0
  12. {mathai-0.3.7 → mathai-0.3.8}/mathai/fraction.py +0 -0
  13. {mathai-0.3.7 → mathai-0.3.8}/mathai/integrate.py +0 -0
  14. {mathai-0.3.7 → mathai-0.3.8}/mathai/inverse.py +0 -0
  15. {mathai-0.3.7 → mathai-0.3.8}/mathai/limit.py +0 -0
  16. {mathai-0.3.7 → mathai-0.3.8}/mathai/linear.py +0 -0
  17. {mathai-0.3.7 → mathai-0.3.8}/mathai/logic.py +0 -0
  18. {mathai-0.3.7 → mathai-0.3.8}/mathai/parser.py +0 -0
  19. {mathai-0.3.7 → mathai-0.3.8}/mathai/printeq.py +0 -0
  20. {mathai-0.3.7 → mathai-0.3.8}/mathai/search.py +0 -0
  21. {mathai-0.3.7 → mathai-0.3.8}/mathai/simplify.py +0 -0
  22. {mathai-0.3.7 → mathai-0.3.8}/mathai/structure.py +0 -0
  23. {mathai-0.3.7 → mathai-0.3.8}/mathai/tool.py +0 -0
  24. {mathai-0.3.7 → mathai-0.3.8}/mathai/trig.py +0 -0
  25. {mathai-0.3.7 → mathai-0.3.8}/mathai/univariate_inequality.py +0 -0
  26. {mathai-0.3.7 → mathai-0.3.8}/mathai.egg-info/SOURCES.txt +0 -0
  27. {mathai-0.3.7 → mathai-0.3.8}/mathai.egg-info/dependency_links.txt +0 -0
  28. {mathai-0.3.7 → mathai-0.3.8}/mathai.egg-info/requires.txt +0 -0
  29. {mathai-0.3.7 → mathai-0.3.8}/mathai.egg-info/top_level.txt +0 -0
  30. {mathai-0.3.7 → mathai-0.3.8}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mathai
3
- Version: 0.3.7
3
+ Version: 0.3.8
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
@@ -108,6 +108,5 @@ def _apart(eq, v="v_0"):
108
108
  return simplify(final3)
109
109
  def apart(eq):
110
110
  eq, fx = enclose_const(eq)
111
-
112
111
  eq = _apart(eq)
113
112
  return fx(eq)
@@ -131,6 +131,8 @@ def frac(eq):
131
131
  return Fraction(int(eq.name[2:]))
132
132
  if eq.name == "f_add":
133
133
  p = frac(eq.children[0])
134
+ if p is None:
135
+ return None
134
136
  for child in eq.children[1:]:
135
137
  tmp = frac(child)
136
138
  if isinstance(tmp, Fraction):
@@ -140,6 +142,8 @@ def frac(eq):
140
142
  return p
141
143
  if eq.name == "f_mul":
142
144
  p = frac(eq.children[0])
145
+ if p is None:
146
+ return None
143
147
  for child in eq.children[1:]:
144
148
  tmp = frac(child)
145
149
  if isinstance(tmp, Fraction):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mathai
3
- Version: 0.3.7
3
+ Version: 0.3.8
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.7",
5
+ version="0.3.8",
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