docs icon indicating copy to clipboard operation
docs copied to clipboard

More clear definition and derivation for CLP derivation Eq1 & 2

Open tree-pi opened this issue 3 years ago • 0 comments

For this document, I suggest the edit as follows:

Start with the fixed-product formula:

$$ Eqn 1: X*Y = K $$

Now that assuming swapping $x$ for the amount of $y$, so that $X*Y=(X+x)(Y-y)$. We can then derive the raw "XYK" output:

$$ Eqn 2: y= \frac{xY}{x+X} $$

tree-pi avatar Aug 06 '22 19:08 tree-pi