mathai 0.3.6__py3-none-any.whl → 0.3.7__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/integrate.py
CHANGED
@@ -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
|
-
|
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)
|
@@ -6,7 +6,7 @@ mathai/diff.py,sha256=YUBpRsz0qmBkq5vGxeGnvR4nMKjdOQiIXlNMxpij2ns,3051
|
|
6
6
|
mathai/expand.py,sha256=SnBltkpIENMGkP0AYmbMlSc4H-CF5RslO2PcBEkn1BQ,3359
|
7
7
|
mathai/factor.py,sha256=NPXxET52TacNExuvw6p1jbC6g3wY6_VOCdlGlexXZio,5916
|
8
8
|
mathai/fraction.py,sha256=Q2ztsh5Bpz6YhML2QU0tfufbAs0Q6J319AhlzKephIY,4396
|
9
|
-
mathai/integrate.py,sha256=
|
9
|
+
mathai/integrate.py,sha256=8IPtDHCqoS0zIPT3ssOkcgoH54y2pnzMZUhjVFqYuW4,15024
|
10
10
|
mathai/inverse.py,sha256=QCvDrzKquWsZv-BDAzZd9HnU0c3gZvcc44UztHVO5LQ,2919
|
11
11
|
mathai/limit.py,sha256=RA8YAehgYCGVWv9qBc8uQ34BQ9mFthWl2OrVTwcHl2g,4920
|
12
12
|
mathai/linear.py,sha256=wyiLpIxRDmD96xXktkgvc5gegIB3zblLB1EuV3TFdmU,5474
|
@@ -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.
|
23
|
-
mathai-0.3.
|
24
|
-
mathai-0.3.
|
25
|
-
mathai-0.3.
|
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,,
|
File without changes
|
File without changes
|