Answer the question
In order to leave comments, you need to log in
How many solutions does the system ax + by = c, dx + ey = f have?
Determine how many solutions the system has ax + by = c, dx + ey = f
If the solution exists and is unique, then find the values of x and y.
My code (doubt it's correct):
import numpy
a = int(input("Введите значение переменной Ax: "))
b = int(input("Введите значение переменной By: "))
c = int(input("Введите значение переменной c: "))
d = int(input("Введите значение переменной Dy: "))
e = int(input("Введите значение переменной Ey: "))
f = int(input("Введите значение переменной f: "))
if a == 0 and b == 0 and d == 0 and e == 0 and c == 0 and f == 0:
print("Бесконечное количество решений.")
elif a == 0 and b == 0 and d == 0 and e == 0 and c != 0 and f != 0:
print("Решений нет.")
else:
M1 = numpy.array()
v1 = numpy.array([c, f])
print(numpy.linalg.solve(M1, v1))
Answer the question
In order to leave comments, you need to log in
Imagine the system as two graphs of lines, and look for their intersection point.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question