# inequality with a piecewise function

Hi.

When I use inequalities with piecewise functions, I get some unexpected results.

For instance here:

https://i.imgur.com/OHpXRWS.png

I have two piecewise-defined functions that are very similar (the only difference is that the two pieces are swapped).

But when I use an inequality statement, only one of the two piecewise-defined functions can be used to shade an area. Why doesn't that work with the other inequality?

Also, if a nested if statement for a piecewise-defined function can be used to shade an area with an inequality, it seems that an equivalent if statement that isn't nested can't be used in the same fashion to obtain a shaded area.

https://i.imgur.com/y5bAKM1.png

greetings and thanks in advance for any feedback on this issue, Niek

You need to make sure both arguments of If() are functions, thus:

piecewise functions are not named in

https://wiki.geogebra.org/e...

I do not get any area with your not nested syntax

the no nested syntax is newest. I hope the issue is solved soon

You need to make sure both arguments of If() are functions, thus:

sorry, not enough

does not work

does not work

works

Loading...Comments have been locked on this page!