mathai 0.7.3__py3-none-any.whl → 0.7.4__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/expand.py CHANGED
@@ -70,9 +70,6 @@ def expand_nc(expr, label="f_mul"):
70
70
  return TreeNode(label, factors)
71
71
 
72
72
 
73
- def expand(eq):
74
- s = str_form(eq)
75
- for item in ["f_mul", "f_wmul", "f_dot", "f_cross"]:
76
- if item in s:
77
- eq = expand_nc(eq, item)
78
- return eq
73
+ def expand(eq, over="*"):
74
+ over = {"@": "f_wmul", ".":"f_dot", "*":"f_mul"}[over]
75
+ return expand_nc(eq, over)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mathai
3
- Version: 0.7.3
3
+ Version: 0.7.4
4
4
  Summary: Mathematics solving Ai tailored to NCERT
5
5
  Home-page: https://github.com/infinity390/mathai4
6
6
  Requires-Python: >=3.7
@@ -4,7 +4,7 @@ mathai/base.py,sha256=XNmXWADG7mA4AeyFbCUsjBvUzDnw8AzWscX0Cc3GjvA,14854
4
4
  mathai/bivariate_inequality.py,sha256=Da-A1kqVynR0tNOlEI7GSTf5T2vNkcF4etL9-EoyPJg,11415
5
5
  mathai/console.py,sha256=Sn58iwYE79MLEh67s8X3q6vZjw6g7f9XM1T8_dBBR2o,3048
6
6
  mathai/diff.py,sha256=RSTwlfeddvYXUDShCeRdcPjsmAS8Vf5OkYJAaUBPaiM,3060
7
- mathai/expand.py,sha256=AEX-inLztL6i7VWSu0Zw1z9OVwhomrnoqGrQiDuoPQE,2502
7
+ mathai/expand.py,sha256=-nMd-TM4m5eIu61yW7YeaH_QCIPUdOqmtUfa9E7Fy94,2448
8
8
  mathai/factor.py,sha256=3wcmZOGUqMlLj4v2DA14ZLqEQ7khavOi7PjZJU6VX40,12494
9
9
  mathai/fraction.py,sha256=88xvRpDGfFi8tbe1QIyejdSP91HcErrN4VS2MxzbhrY,4392
10
10
  mathai/integrate.py,sha256=C_lqYgQN4UiriCb_LDkpwtKx7XJhp_K8T9skCkxWqas,17208
@@ -23,7 +23,7 @@ mathai/structure.py,sha256=wrU7kqphSN7CqaVffyHHXD2-3t5My_Z_TtYFoUe_lTU,4099
23
23
  mathai/tool.py,sha256=ozcXTXLbKUnyPM9r9kz9M43YA2CBcWezcqLZfEs8rpc,6051
24
24
  mathai/trig.py,sha256=fnBbfiopcQzFg4ya1BoO5M0X_aCBnse2bjnKh1juw4I,11223
25
25
  mathai/univariate_inequality.py,sha256=LPFdWgC1y5zBwnsy1wwZxj-yP_SbqFDhCmTTzhuwoiY,16469
26
- mathai-0.7.3.dist-info/METADATA,sha256=O-xwE15PJRC2oY1xe7-JWyBlDlvcIcCwSxlcDNwdk5s,7735
27
- mathai-0.7.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
28
- mathai-0.7.3.dist-info/top_level.txt,sha256=ROP4l3OhGYw3ihkQGASr18xM9GsK4z3_6whV5AyXLwE,7
29
- mathai-0.7.3.dist-info/RECORD,,
26
+ mathai-0.7.4.dist-info/METADATA,sha256=KrAeV2SCsA8woWqHAHlIHTrkXpGNXiAYG3Q9qMQ6q_Y,7735
27
+ mathai-0.7.4.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
28
+ mathai-0.7.4.dist-info/top_level.txt,sha256=ROP4l3OhGYw3ihkQGASr18xM9GsK4z3_6whV5AyXLwE,7
29
+ mathai-0.7.4.dist-info/RECORD,,
File without changes