mathai 0.3.7__py3-none-any.whl → 0.3.8__py3-none-any.whl

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/apart.py CHANGED
@@ -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)
mathai/base.py CHANGED
@@ -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
@@ -1,6 +1,6 @@
1
1
  mathai/__init__.py,sha256=GsDxDy6iWjoJ7CJty2nzE4Jx03mZkHFQW6hkmPJHkPE,1217
2
- mathai/apart.py,sha256=Fhl-OHZzPGIOj8YFyGQddjuh-2HV7uVDhkIzQ-YoMO0,3492
3
- mathai/base.py,sha256=x4Rjgz5mVblclsycKtDJjSudFpyIBWSEUX83_120BZY,12587
2
+ mathai/apart.py,sha256=4n1uNeTgSoTxwRiPWRYLg26fL3CS2LxUy4ePHxps1Cs,3486
3
+ mathai/base.py,sha256=zJqozbSeesbxw8YJ_eNXmaoy8K5VmkPHECnuAFGRvW4,12683
4
4
  mathai/console.py,sha256=Sn58iwYE79MLEh67s8X3q6vZjw6g7f9XM1T8_dBBR2o,3048
5
5
  mathai/diff.py,sha256=YUBpRsz0qmBkq5vGxeGnvR4nMKjdOQiIXlNMxpij2ns,3051
6
6
  mathai/expand.py,sha256=SnBltkpIENMGkP0AYmbMlSc4H-CF5RslO2PcBEkn1BQ,3359
@@ -19,7 +19,7 @@ mathai/structure.py,sha256=4Ww2IAx62RcQSO7_17TZES-DjMWBpcFQtL939FBIHwY,4103
19
19
  mathai/tool.py,sha256=UyccamiJy_CkFPakfufyPzdhtlEO6v2D7qwbXQ9V7Rg,2000
20
20
  mathai/trig.py,sha256=5P0RNS4eetNds2l-wyA4BAKqJdFIUws_8RGS_dH7gp8,9348
21
21
  mathai/univariate_inequality.py,sha256=_r-kkiS4Hr-jRN7f-EL_E4svAMFWJP1Ea50HJKKbjfk,14778
22
- mathai-0.3.7.dist-info/METADATA,sha256=FDULZSw1CmA66jzn0svcz_YlrQEk_yRV6uB4rGBB7kk,7021
23
- mathai-0.3.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
- mathai-0.3.7.dist-info/top_level.txt,sha256=ROP4l3OhGYw3ihkQGASr18xM9GsK4z3_6whV5AyXLwE,7
25
- mathai-0.3.7.dist-info/RECORD,,
22
+ mathai-0.3.8.dist-info/METADATA,sha256=zCjS0EFQ80_I4J6y3qKaxJRicNWn_1rzoo3gFuNO3dU,7021
23
+ mathai-0.3.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
+ mathai-0.3.8.dist-info/top_level.txt,sha256=ROP4l3OhGYw3ihkQGASr18xM9GsK4z3_6whV5AyXLwE,7
25
+ mathai-0.3.8.dist-info/RECORD,,
File without changes