I have the function |x||y-2| <= 1

How would I plot this on latex? I have seen a question posted today that is similar to this, however the graph produced by this function is more complex. So the method used in that question won't work.


Perhaps like this?

    restrict z to domain=0:1


enter image description here

With truncation it looks a little ugly. However, one could use capping

restrict z to domain*=0:1

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.