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.
Files changed (29) hide show
  1. {mathai-0.4.2 → mathai-0.4.4}/PKG-INFO +1 -1
  2. {mathai-0.4.2 → mathai-0.4.4}/mathai/integrate.py +11 -9
  3. {mathai-0.4.2 → mathai-0.4.4}/mathai/simplify.py +2 -0
  4. {mathai-0.4.2 → mathai-0.4.4}/mathai.egg-info/PKG-INFO +1 -1
  5. {mathai-0.4.2 → mathai-0.4.4}/setup.py +1 -1
  6. {mathai-0.4.2 → mathai-0.4.4}/README.md +0 -0
  7. {mathai-0.4.2 → mathai-0.4.4}/mathai/__init__.py +0 -0
  8. {mathai-0.4.2 → mathai-0.4.4}/mathai/apart.py +0 -0
  9. {mathai-0.4.2 → mathai-0.4.4}/mathai/base.py +0 -0
  10. {mathai-0.4.2 → mathai-0.4.4}/mathai/console.py +0 -0
  11. {mathai-0.4.2 → mathai-0.4.4}/mathai/diff.py +0 -0
  12. {mathai-0.4.2 → mathai-0.4.4}/mathai/expand.py +0 -0
  13. {mathai-0.4.2 → mathai-0.4.4}/mathai/factor.py +0 -0
  14. {mathai-0.4.2 → mathai-0.4.4}/mathai/fraction.py +0 -0
  15. {mathai-0.4.2 → mathai-0.4.4}/mathai/inverse.py +0 -0
  16. {mathai-0.4.2 → mathai-0.4.4}/mathai/limit.py +0 -0
  17. {mathai-0.4.2 → mathai-0.4.4}/mathai/linear.py +0 -0
  18. {mathai-0.4.2 → mathai-0.4.4}/mathai/logic.py +0 -0
  19. {mathai-0.4.2 → mathai-0.4.4}/mathai/parser.py +0 -0
  20. {mathai-0.4.2 → mathai-0.4.4}/mathai/printeq.py +0 -0
  21. {mathai-0.4.2 → mathai-0.4.4}/mathai/structure.py +0 -0
  22. {mathai-0.4.2 → mathai-0.4.4}/mathai/tool.py +0 -0
  23. {mathai-0.4.2 → mathai-0.4.4}/mathai/trig.py +0 -0
  24. {mathai-0.4.2 → mathai-0.4.4}/mathai/univariate_inequality.py +0 -0
  25. {mathai-0.4.2 → mathai-0.4.4}/mathai.egg-info/SOURCES.txt +0 -0
  26. {mathai-0.4.2 → mathai-0.4.4}/mathai.egg-info/dependency_links.txt +0 -0
  27. {mathai-0.4.2 → mathai-0.4.4}/mathai.egg-info/requires.txt +0 -0
  28. {mathai-0.4.2 → mathai-0.4.4}/mathai.egg-info/top_level.txt +0 -0
  29. {mathai-0.4.2 → mathai-0.4.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mathai
3
- Version: 0.4.2
3
+ Version: 0.4.4
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
@@ -336,15 +336,17 @@ def byparts(eq):
336
336
 
337
337
  def integration_formula_init():
338
338
  var = "x"
339
- formula_list = [(f"(A*{var}+B)^C", f"(A*{var}+B)^(C+1)/(A*(C+1))"),\
340
- (f"sin(A*{var}+B)", f"-cos(A*{var}+B)/A"),\
341
- (f"cos(A*{var}+B)", f"sin(A*{var}+B)/A"),\
342
- (f"1/(A*{var}+B)", f"log(abs(A*{var}+B))/A"),\
343
- (f"e^(A*{var}+B)", f"e^(A*{var}+B)/A"),\
344
- (f"1/cos({var})", f"log(abs((1+sin({var}))/cos({var})))"),\
345
- (f"1/cos({var})^2", f"sin({var})/cos({var})"),\
346
- (f"1/sin({var})", f"log(abs(tan({var}/2)))"),\
347
- (f"abs(A*{var}+B)", f"(A*{var}+B)*abs(A*{var}+B)/(2*A)")]
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"):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mathai
3
- Version: 0.4.2
3
+ Version: 0.4.4
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
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="mathai",
5
- version="0.4.2",
5
+ version="0.4.4",
6
6
  description="Mathematics solving Ai tailored to NCERT",
7
7
  long_description=open("README.md").read(),
8
8
  long_description_content_type="text/markdown",
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