MathematicsNEB 2081 (old course)
a) Find the feasible region determined by the following inequalities x + 2y 7, x 0, y 0 . [2] b) Convert the decimal numeral 20345 into hexadecimal number. [2] c) Write condition for the system of…
6- a) Find the feasible region determined by the following inequalities . [2]
- b) Convert the decimal numeral 20345 into hexadecimal number. [2]
- c) Write condition for the system of equations to be ill-defined. [2]
Answer
a) Feasible region for
1. Plot the boundary lines
- → (a straight line with intercepts and ).
- → the -axis.
- → the -axis.
2. Determine the side of each line that satisfies the inequality
- For : test the origin .
→ the region below the line is admissible. - For : the region to the right of the -axis.
- For : the region above the -axis.
3. Intersection of the three half‑planes
The common part is the triangle bounded by the three lines. Its vertices are obtained by pairwise intersections:
| Pair of lines | Intersection point |
|---|---|
| and | |
| and | |
| and |
Hence the feasible region is the closed triangle with vertices .
Result: the set is the triangular region shown above.
b) Decimal → hexadecimal
The conversion proceeds by repeated division by 16, recording remainders (0–15) and then reading the remainders in reverse order.
| Division step | Quotient | Remainder | Hex digit |
|---|---|---|---|
| 1271 | 9 | 9 | |
| 79 | 7 | 7 | |
| 4 | 15 | F | |
| 0 | 4 | 4 |
Reading the remainders from the last division to the first gives 4 F 7 9.
c) Condition for the linear system
1. Determinant of the coefficient matrix
If the system has a unique solution (well‑defined).
2. Ill‑defined cases ()
When the two equations are linearly dependent. Two possibilities arise:
| Situation | Algebraic condition | Geometric interpretation |
|---|---|---|
| Infinitely many solutions | (provided or ≠ 0) | Two coincident lines |
| No solution (inconsistent) | Two parallel distinct lines |
Thus the necessary and sufficient condition for the system to be ill‑defined is
together with the proportionality test on the constant terms to decide whether the inconsistency or infinite‑solution case occurs.
Complete code (Python) for part b – decimal to hexadecimal conversion
def dec_to_hex(n: int) -> str:
"""Return hexadecimal representation of a non‑negative integer."""
if n == 0:
return "0"
hex_digits = "0123456789ABCDEF"
res = []
while n > 0:
n, r = divmod(n, 16) # divide by 16, get remainder
res.append(hex_digits[r]) # map remainder to hex digit
return ''.join(reversed(res))
# Example
print(dec_to_hex(20345)) # prints 4F79
The program repeatedly divides the decimal number by 16, stores each remainder, maps it to the corresponding hexadecimal character, and finally reverses the list to obtain the correct order. The printed output for the given input is 4F79.
Discussion
Loading…