# Rational Inequalities

BSS_Math shared this question 4 years ago

Does Geogebra calculate inequalities for just polynomial functions? I have noticed simple commands as x^2-2<0 will shade in or place a solution on graphics. However if you type in x/(x-1)<0, this will show up as a function. Moreover, exponential and sinusoidal functions do not work for inequalities either.

My end goal is to create a program that can take any two rational functions f(x), and g(x) and solve f(x)<g(x) etc and output the answer either visually or via text. My program currently works for f(x) and g(x) being polynomials (haven't figured out the text tho). 1

About a rational inequality, you can solve it in CAS view, or in Algebra View with a workaround.

See pic 1

like......

Files: foro.ggb 1

Or this, also 1

with CAS view I get intervals of inequality, and it worked good. but i don't undertand this example -how did you construct the functions h and p?  1

Ah, this is a simple solution!

Thank you both! 1

thank you mathmagic

is there a way to write the borders of the solution of the inequalities - in other words to make the x-values as independent numbers so we can print the solution and use them as Objects? 1

do you mean f(x)==g(x)?

there is not a general method for all functions. try intersect,solutions, Nsolutions, CAS etc

they work depending of functions you wan

an example could help

when you have a set of points you can use x(setofpoints) for x coords