Inequalities are mathematical statements involving an order relation between two quantities, such as 'a is less than b' or 'a is greater than or equal to b'. These are usually expressed in symbols, i.e. 'a < b' or 'a>=b'.
Questions tagged [inequality]
273 questions
-1
votes
2 answers
how to compare two arrays for inequality in python? (greater for example)
does anybody know how to do comparison between two arrays in python? I almost tried everything but didn't work out. Could some body help?
what i mean is that for all the elements one array/list is greater in same shape for both arrays;
(a =…

shining2014
- 11
- 1
- 5
-1
votes
1 answer
Proving linear equations/Inequalities automatically
I'm looking for a tool for determining whether a given set of linear equations/inequalities (A) entails another given set of linear equations/inequalities (B). The return value should be either 'true' or 'false'.
To illustrate, let's look at…

Assaf
- 184
- 1
- 11
-1
votes
2 answers
Inequality comparison between strings in Oracle
SELECT LAST_NAME FROM Employees
WHERE last_name < 'King';
In the book 'SQL Fundamentals I Exam Guide' it says that on the comparison LAST_NAME < 'King' occurs the following convertion in the NLS settings assuming a US7ASCII database character set…

Roni Castro
- 1,968
- 21
- 40
-1
votes
2 answers
How to write chained inequalities (a <= b <= c) in if functions
How can you write the following in if functions in R
Supposing you have X ranging from 121 to 212 and Y ranges from 122 to 212, how can you write an if function to represents something like:
if 121 <= X <= 212 and 122 <= Y <= 212; then do…

user3770793
- 1
- 1
- 2
-1
votes
1 answer
Plot region of the inequalities using matlab
I have a question about matlab. It seems simple but I can't find the solution for inequalities linear region plot in matlab. For example, I want to plot the regions of y-x, and y>x and show the color for each one. For any x, y, but we can assume x =…

KL84
- 237
- 2
- 4
- 12
-1
votes
2 answers
how to plot a function subject to constraints in matlab
I have this function:
function f=cost(x)
f=1.10471*x(1)^2*x(2)+0.04811*x(3)*x(4)*(14.0+x(2));
subject…

WhoCares
- 225
- 1
- 5
- 16
-1
votes
1 answer
Hoare partitioning algorithm - strict or not strict inequalities?
I'm having a really hard time with the implementation of Hoare's partition algorithm. Basically, what i want to do is split an array into two parts, the first one containing numbers lesser than the given x, and the other one containing the greater.…

user4520
- 3,401
- 1
- 27
- 50
-2
votes
1 answer
find the smallest integer N, such that
I am stuck for quite a while now on the following task:
find the smallest integer N, such that A^N < N!
I want to do this in C# and A can be so big that there is no type that can store the results. I also know that this can be solved without…

Neralem
- 101
- 7
-2
votes
2 answers
Writing the right inequality in python?
Would python intrepet this:
if hour < 7 and hour > 0 or hour > 20 and hour < 23:
the same as
if 7 > hour > 0 or 23 > hour > 20 (this one is just the usual mathematical inequality)
if not then what should I write to tell python this inequality?

Hugo atm
- 11
- 3
-2
votes
1 answer
How is it possible that double inequality succeeds on two equal doubles?
I have a snippet of code that I don't manage to understand.
To give some context: I have a line (defined by its angular coefficient m) and I search over a set of segments to find the intersecting one. A segment and a vector of segments are defined…

Federico Nardi
- 510
- 7
- 19
-2
votes
3 answers
What is the right operator in vb.net for test if a String is not equal?
I tried something like this
Do Until !test.equals("1234") Or !test.equals("xyxyxyx")
...
Loop
How can I write that in vb.net?

dieMstar
- 17
- 1
- 1
-2
votes
1 answer
Find the number of pairs of positive integers satisfying the inequality
I'm trying to solve a programming problem where I have to display the number of positive integer solutions of the inequality x² + y² < n, where n is given by the user. I've already written a code that seems to work but not as fast as I'd like it to.…
-2
votes
2 answers
Equality & Inequality of two arrays
For an assignment I have to overload several operators and use them in regards to two sets. I have my class, Set, which has two objects, A and B, both of which are set arrays. I am attempting to overload an equality and inequality function that will…

Jane D.
- 1
- 1
-3
votes
1 answer
Comparing inequalities for Go bigInt?
I am trying to compare two big ints. I'm looking at the docs: https://pkg.go.dev/math/big#Int and I don't see an inequality operator, but I do see an equality one (Cmp).
How am I meant to compare a big int a to a big int b?
Am I meant to subtract b…

Luke
- 23
- 3
-3
votes
2 answers
Calculate Values of Variables Found in an Interval with Java
I am trying to find the values x and y may take so the following inequalities hold:
1/24 < 1/15*y < 1/10*x < 2/24 < 2/15*y < 3/24
Is there a way to formulate such a problem in Java?
Constraint Programming would probably solve such a problem but is…

Georgios
- 861
- 2
- 12
- 30