-
Some operations like: +, * or == are commutative (a + b = b + a) but some are not, like - or / (a - b != b - a).
**INFO:** commutative with some limits because js accept really strange stuff to app…
-
Hi, commutative diagram \xymatrix does not work in Katex
$$ \xymatrix{
FX \ar[r]^-{Ff} \ar[d]_{\eta_X} & FY \ar[d]^{\eta_Y} \\
GX \ar[r]_-{Gf} & GY\\} $$
This is very frequently used in mathe…
-
Currently MathClasses defines `Ring` to be a commutative ring. I propose to rename it to `CommutativeRing`, and introduce a `Ring` for non-commutative rings. Are there any objections? If no, I'll prep…
urkud updated
5 years ago
-
The None value leads to less pretty printing.
```python
>>> print(1/UnevaluatedExpr(sqrt(pi)))
(sqrt(pi))**(-1)
```
The following tweaks to str and pretty are a move to make it look better:
`…
-
~~~coq
Require Import Setoid Bool.
Lemma foo (u:unit) b : (match u with tt => fun (C : Prop) => negb (negb b) end) True = b.
Proof.
setoid_rewrite negb_involutive.
~~~
Before https://githu…
-
```python
import aesara
import aesara.tensor as at
x, y = at.scalars("x", "y")
f = aesara.function([x, y], [x + y, x + y, y + x, y + x])
aesara.dprint(f)
```
```python
DeepCopyOp [id A] ''…
-
Consider the following code:
```
import sympy as sp
p1,p2=sp.symbols("p_1 p_2", commutative=True)
print((p1*p2).match(sp.Wild("a")*p2))
p1,p2=sp.symbols("p_1 p_2", commutative=False)
print((p1*p…
-
I would like to use the commutative=False argument to symbols to make sure
my expressions aren't arbitrarily re-arranged. But in the case of boolean expressions,
I get some un-anticipated behavior.…
-
Sympy v1.5.1.
I have a few examples and I'm not sure if the output is correct, so if I'm wrong please say so...
```
h = sp.Function("h")
h.is_commutative
>>>
```
Here I was expecting `No…
-
Consider the following expression
```
a, b, c = sympy.symbols('a b c', commutative=False)
(a * b + a * c).simplify()
```
which returns `a * b + a * c` instead of `a * (b + c)`. Is there any rea…