import matplotlib.pyplot as plt
import numpy as np


def ps33_q23():
    x = np.linspace(-5, 5, 1000000)
    y1 = lambda x: (12 / 5) * x + 4

    y2 = lambda x: - (5 / 6) * x + (23 / 6)

    fig = plt.figure(figsize=(12, 8))
    ax = fig.add_subplot(1, 1, 1)
    ax.plot(x, y1(x))
    ax.plot(x, y2(x))
    plt.show()

    zero_lst = []
    for element in x:
        if np.abs(y1(element) - y2(element)) < 1e-5:
            zero_lst.append((element, y1(element)))
    print(zero_lst)




if __name__ == '__main__':
    ps33_q23()
4918b3ba4dd885ec4caa97372a82f44183eb438e
<mask token>

<mask token>


def ps33_q23():
    x = np.linspace(-5, 5, 1000000)
    y1 = lambda x: 12 / 5 * x + 4
    y2 = lambda x: -(5 / 6) * x + 23 / 6
    fig = plt.figure(figsize=(12, 8))
    ax = fig.add_subplot(1, 1, 1)
    ax.plot(x, y1(x))
    ax.plot(x, y2(x))
    plt.show()
    zero_lst = []
    for element in x:
        if np.abs(y1(element) - y2(element)) < 1e-05:
            zero_lst.append((element, y1(element)))
    print(zero_lst)


<mask token>

<mask token>


def ps33_q23():
    x = np.linspace(-5, 5, 1000000)
    y1 = lambda x: 12 / 5 * x + 4
    y2 = lambda x: -(5 / 6) * x + 23 / 6
    fig = plt.figure(figsize=(12, 8))
    ax = fig.add_subplot(1, 1, 1)
    ax.plot(x, y1(x))
    ax.plot(x, y2(x))
    plt.show()
    zero_lst = []
    for element in x:
        if np.abs(y1(element) - y2(element)) < 1e-05:
            zero_lst.append((element, y1(element)))
    print(zero_lst)


if __name__ == '__main__':
    ps33_q23()

import matplotlib.pyplot as plt
import numpy as np


def ps33_q23():
    x = np.linspace(-5, 5, 1000000)
    y1 = lambda x: 12 / 5 * x + 4
    y2 = lambda x: -(5 / 6) * x + 23 / 6
    fig = plt.figure(figsize=(12, 8))
    ax = fig.add_subplot(1, 1, 1)
    ax.plot(x, y1(x))
    ax.plot(x, y2(x))
    plt.show()
    zero_lst = []
    for element in x:
        if np.abs(y1(element) - y2(element)) < 1e-05:
            zero_lst.append((element, y1(element)))
    print(zero_lst)


if __name__ == '__main__':
    ps33_q23()

import matplotlib.pyplot as plt
import numpy as np


def ps33_q23():
    x = np.linspace(-5, 5, 1000000)
    y1 = lambda x: (12 / 5) * x + 4

    y2 = lambda x: - (5 / 6) * x + (23 / 6)

    fig = plt.figure(figsize=(12, 8))
    ax = fig.add_subplot(1, 1, 1)
    ax.plot(x, y1(x))
    ax.plot(x, y2(x))
    plt.show()

    zero_lst = []
    for element in x:
        if np.abs(y1(element) - y2(element)) < 1e-5:
            zero_lst.append((element, y1(element)))
    print(zero_lst)




if __name__ == '__main__':
    ps33_q23()