mathai 0.4.2__tar.gz → 0.4.4__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.4.2 → mathai-0.4.4}/PKG-INFO +1 -1
- {mathai-0.4.2 → mathai-0.4.4}/mathai/integrate.py +11 -9
- {mathai-0.4.2 → mathai-0.4.4}/mathai/simplify.py +2 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai.egg-info/PKG-INFO +1 -1
- {mathai-0.4.2 → mathai-0.4.4}/setup.py +1 -1
- {mathai-0.4.2 → mathai-0.4.4}/README.md +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai/__init__.py +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai/apart.py +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai/base.py +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai/console.py +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai/diff.py +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai/expand.py +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai/factor.py +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai/fraction.py +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai/inverse.py +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai/limit.py +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai/linear.py +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai/logic.py +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai/parser.py +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai/printeq.py +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai/structure.py +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai/tool.py +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai/trig.py +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai/univariate_inequality.py +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai.egg-info/SOURCES.txt +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai.egg-info/dependency_links.txt +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai.egg-info/requires.txt +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/mathai.egg-info/top_level.txt +0 -0
- {mathai-0.4.2 → mathai-0.4.4}/setup.cfg +0 -0
|
@@ -336,15 +336,17 @@ def byparts(eq):
|
|
|
336
336
|
|
|
337
337
|
def integration_formula_init():
|
|
338
338
|
var = "x"
|
|
339
|
-
formula_list = [
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
339
|
+
formula_list = [
|
|
340
|
+
(f"(A*{var}+B)^C", f"(A*{var}+B)^(C+1)/(A*(C+1))"),
|
|
341
|
+
(f"sin(A*{var}+B)", f"-cos(A*{var}+B)/A"),
|
|
342
|
+
(f"cos(A*{var}+B)", f"sin(A*{var}+B)/A"),
|
|
343
|
+
(f"1/(A*{var}+B)", f"log(abs(A*{var}+B))/A"),
|
|
344
|
+
(f"e^(A*{var}+B)", f"e^(A*{var}+B)/A"),
|
|
345
|
+
(f"1/cos(A*{var}+B)", f"log(abs((1+sin(A*{var}+B))/cos(A*{var}+B)))"),
|
|
346
|
+
(f"1/cos(A*{var}+B)^2", f"tan(A*{var}+B)/A"),
|
|
347
|
+
(f"1/sin(A*{var}+B)", f"log(abs(tan((A*{var}+B)/2)))/A"),
|
|
348
|
+
(f"1/cos(A*{var}+B)^3", f"(sec(A*{var}+B)*tan(A*{var}+B)+log(abs(sec(A*{var}+B)+tan(A*{var}+B))))/(2*A)")
|
|
349
|
+
]
|
|
348
350
|
formula_list = [[simplify(parse(y)) for y in x] for x in formula_list]
|
|
349
351
|
expr = [[parse("A"), parse("1")], [parse("B"), parse("0")]]
|
|
350
352
|
return [formula_list, var, expr]
|
|
@@ -304,6 +304,8 @@ def simplify(eq):
|
|
|
304
304
|
dic[head] += tail
|
|
305
305
|
if len(eq.children) > len(dic.keys()):
|
|
306
306
|
eq = product([key if dic[key] == 1 else key**dic[key] for key in dic.keys()])
|
|
307
|
+
if eq.name == "f_abs" and eq.children[0].name == "f_pow" and frac(eq.children[0].children[1]) == Fraction(1,2):
|
|
308
|
+
eq = eq.children[0]
|
|
307
309
|
if eq.name == "f_pow" and eq.children[0].name == "f_pow" and eq.children[0].children[1] == tree_form("d_2")**-1 and eq.children[1] == tree_form("d_2"):
|
|
308
310
|
eq = eq.children[0].children[0]
|
|
309
311
|
if (eq.name == "f_sin" and eq.children[0].name == "f_arcsin") or (eq.name == "f_cos" and eq.children[0].name == "f_arccos") or (eq.name == "f_tan" and eq.children[0].name == "f_arctan"):
|
|
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
|