SolveTools[Inequality] - Maple Programming Help

Home : Support : Online Help : Mathematics : Factorization and Solving Equations : SolveTools : Inequality : SolveTools/Inequality/LinearUnivariate

SolveTools[Inequality]

 LinearUnivariate
 solve a linear inequality with respect to one variable

 Calling Sequence LinearUnivariate(ineq, var)

Parameters

 ineq - inequality var - variable name

Description

 • The LinearUnivariate command solves a linear inequality with respect to one variable.
 • The LinearUnivariate command returns a set describing the interval of possible values of the variable or a piecewise function of such sets depending on parameters

Examples

 > with(SolveTools[Inequality]):
 > LinearUnivariate(2*x<1,x);
 $\left\{{x}{<}\frac{{1}}{{2}}\right\}$ (1)
 > LinearUnivariate(2*x
 $\left\{{x}{<}\frac{{a}}{{2}}\right\}$ (2)
 > LinearUnivariate(a*x<=1,x);
 $\left\{\begin{array}{cc}\left\{{x}{\le }\frac{{1}}{{a}}\right\}& {0}{<}{a}\\ \left\{\frac{{1}}{{a}}{\le }{x}\right\}& {a}{<}{0}\\ \left\{{x}\right\}& {a}{=}{0}\end{array}\right\$ (3)
 > LinearUnivariate(a*x<1,x);
 $\left\{\begin{array}{cc}\left\{{x}{<}\frac{{1}}{{a}}\right\}& {0}{<}{a}\\ \left\{\frac{{1}}{{a}}{<}{x}\right\}& {a}{<}{0}\\ \left\{{x}\right\}& {a}{=}{0}\end{array}\right\$ (4)
 > LinearUnivariate(a*x+b<1,x);
 $\left\{\begin{array}{cc}\left\{{x}{<}{-}\frac{{b}{-}{1}}{{a}}\right\}& {0}{<}{a}\\ \left\{{-}\frac{{b}{-}{1}}{{a}}{<}{x}\right\}& {a}{<}{0}\\ \left\{{x}\right\}& {a}{=}{0}{\wedge }{b}{<}{1}\\ {\varnothing }& {a}{=}{0}{\wedge }{1}{\le }{b}\end{array}\right\$ (5)
 > LinearUnivariate(a*x+b<1,x) assuming a>0;
 $\left\{{x}{<}{-}\frac{{b}{-}{1}}{{a}}\right\}$ (6)
 > LinearUnivariate(a*x+b<1,x) assuming b>1;
 $\left\{\begin{array}{cc}\left\{{x}{<}{-}\frac{{b}{-}{1}}{{a}}\right\}& {0}{<}{a}\\ \left\{{-}\frac{{b}{-}{1}}{{a}}{<}{x}\right\}& {a}{<}{0}\\ {\varnothing }& {a}{=}{0}\end{array}\right\$ (7)