Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Inverses for TrivSqZeroExt (#12075)
Defined inverses for TrivEqExtZero in a way that is consitent with DualNumbers. Note that $(a + b\epsilon)^{-1} = \frac{1(a - b\epsilon)}{(a + b\epsilon)(a - b\epsilon)} = \frac{a - b\epsilon}{a^2}$ Which becomes $\frac{1}{a} - \frac{b}{a^2}\epsilon$. We want to be able have left multiplicative inverses $x x^{-1} = 0$ So we write $\frac{b}{a^2} = a^{-1} \cdot b \cdot a^{-1}$ Also included a proof that $x \cdot x^{-1} = 1$ when $\text{fst } x \neq 0$ Co-authored-by: Frederick Pu <frederick.pu@mail.utoronto.ca>
- Loading branch information
1 parent
7e8cd2b
commit 9670eb9
Showing
2 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters