Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I found the following integer transform, where all variables $x_0,x _1$ and $x_2$ are integers:

$ y_0=x_1+floor(\frac{1}{4}(x_0+2x_1+x_2))\\ y_1=x_2-x_1\\ y_2=x_0-x_1 $

The inverse transform is following:

$ x_0=s+y_2\\ x_1=s\\ x_2=s+y_1\\ $

where $s=y_0-floor(\frac{1}{4}(y_1+y_2))$

How can modify the transform to have $y_1$ or $y_2$ to be equal with $floor(\frac{x_2-x_1}{2})$ or $floor(\frac{x_0-x_1}{2})$?

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.