mathai 2.0.0__tar.gz → 2.0.2__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-2.0.0 → mathai-2.0.2}/PKG-INFO +1 -1
- {mathai-2.0.0 → mathai-2.0.2}/mathai/formula_compiler.py +3 -2
- {mathai-2.0.0 → mathai-2.0.2}/mathai/formula_data.py +2 -1
- {mathai-2.0.0 → mathai-2.0.2}/mathai.egg-info/PKG-INFO +1 -1
- {mathai-2.0.0 → mathai-2.0.2}/setup.py +1 -1
- {mathai-2.0.0 → mathai-2.0.2}/README.md +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/__init__.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/apart.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/base.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/decision.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/diff.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/expand.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/factor.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/fraction.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/integrate.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/inverse.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/lambda_calculus.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/limit.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/linear.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/logic.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/matrix.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/ml.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/mlscalar.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/ode.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/parser.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/pde.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/printeq.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/qm.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/simplify.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/statistics.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/test.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/tool.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/trig.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai/univariate_inequality.py +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai.egg-info/SOURCES.txt +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai.egg-info/dependency_links.txt +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/mathai.egg-info/top_level.txt +0 -0
- {mathai-2.0.0 → mathai-2.0.2}/setup.cfg +0 -0
|
@@ -275,7 +275,8 @@ def structure(
|
|
|
275
275
|
for associativity in hh:
|
|
276
276
|
varlist = {}
|
|
277
277
|
ignore = []
|
|
278
|
-
out2 = helper(copy.deepcopy(equation), item)
|
|
278
|
+
out2 = helper(copy.deepcopy(equation), copy.deepcopy(item))
|
|
279
|
+
varlist = {}
|
|
279
280
|
out = helper(copy.deepcopy(equation), item)
|
|
280
281
|
varlist.update(upd)
|
|
281
282
|
d = []
|
|
@@ -321,7 +322,7 @@ def structure(
|
|
|
321
322
|
s = "\tif " + print_code(out2) + ":\n"
|
|
322
323
|
u = "\t\tif " + print_code(out) + ":\n"
|
|
323
324
|
t = "\t\t\treturn " + print_code2(local_formula_out) + "\n"
|
|
324
|
-
final_output += s + t
|
|
325
|
+
final_output += s + u + t
|
|
325
326
|
return final_output
|
|
326
327
|
def convert2(eq):
|
|
327
328
|
|
|
@@ -14,18 +14,19 @@ formula_data = {}
|
|
|
14
14
|
# negative constraint
|
|
15
15
|
# associative arity
|
|
16
16
|
formula = """
|
|
17
|
+
integrate(1/(a*x+b),x) log(abs(a*x+b))/a x _ [a,b] _ [a,0] _ _ 6
|
|
17
18
|
integrate((a*x+b)^c,x) (a*x+b)^(c+1)/(a*(c+1)) x _ [a,b,c] _ [[a,0],[c,-1]] _ _ 1
|
|
18
19
|
// dummy
|
|
19
20
|
|
|
20
21
|
integrate(x^2*e^(a*x+b),x) ((x^2/a)-(2*x/(a^2))+(2/(a^3)))*e^(a*x+b) x _ [a,b] _ [a,0] _ _ 6
|
|
21
22
|
integrate(x*e^(a*x+b),x) ((x/a)-(1/(a^2)))*e^(a*x+b) x _ [a,b] _ [a,0] _ _ 6
|
|
22
23
|
integrate(e^(a*x+b),x) e^(a*x+b)/a x _ [a,b] _ [a,0] _ _ 6
|
|
24
|
+
integrate(1/(a*x+b),x) log(abs(a*x+b))/a x _ [a,b] _ [a,0] _ _ 6
|
|
23
25
|
integrate((a*x+b)^c,x) (a*x+b)^(c+1)/(a*(c+1)) x _ [a,b,c] _ [[a,0],[c,-1]] _ _ 1
|
|
24
26
|
integrate(1/cos(a*x+b)^2,x) tan(a*x+b)/a x _ [a,b] _ [a,0] _ _ 2
|
|
25
27
|
integrate(1/sin(a*x+b)^2,x) -cot(a*x+b)/a x _ [a,b] _ [a,0] _ _ 2
|
|
26
28
|
integrate(1/cos(a*x+b),x) log(abs((1+sin(a*x+b))/cos(a*x+b)))/a x _ [a,b] _ [a,0] _ _ 2
|
|
27
29
|
integrate(1/sin(a*x+b),x) log(abs(tan((a*x+b)/2)))/a x _ [a,b] _ [a,0] _ _ 2
|
|
28
|
-
integrate(1/(a*x+b),x) log(abs(a*x+b))/a x _ [a,b] _ [a,0] _ _ 6
|
|
29
30
|
integrate(sin(a*x+b)^2/cos(a*x+b)^2,x) tan(a*x+b)/a-x x _ [a,b] _ [a,0] _ _ 2
|
|
30
31
|
integrate(sin(a*x+b)/(cos(a*x+b)^2),x) 1/(a*cos(a*x+b)) x _ [a,b] _ [a,0] _ _ 2
|
|
31
32
|
integrate(sin(a*x+b),x) -cos(a*x+b)/a x _ [a,b] _ [a,0] _ _ 6
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|