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.
- {mathai-0.3.7 → mathai-0.3.8}/PKG-INFO +1 -1
- {mathai-0.3.7 → mathai-0.3.8}/mathai/apart.py +0 -1
- {mathai-0.3.7 → mathai-0.3.8}/mathai/base.py +4 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai.egg-info/PKG-INFO +1 -1
- {mathai-0.3.7 → mathai-0.3.8}/setup.py +1 -1
- {mathai-0.3.7 → mathai-0.3.8}/README.md +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai/__init__.py +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai/console.py +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai/diff.py +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai/expand.py +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai/factor.py +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai/fraction.py +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai/integrate.py +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai/inverse.py +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai/limit.py +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai/linear.py +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai/logic.py +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai/parser.py +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai/printeq.py +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai/search.py +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai/simplify.py +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai/structure.py +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai/tool.py +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai/trig.py +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai/univariate_inequality.py +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai.egg-info/SOURCES.txt +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai.egg-info/dependency_links.txt +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai.egg-info/requires.txt +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/mathai.egg-info/top_level.txt +0 -0
- {mathai-0.3.7 → mathai-0.3.8}/setup.cfg +0 -0
@@ -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):
|
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
|