import numpy as np
import matplotlib.pyplot as plt

def gnu_plot(a, b, x_min, x_max):
    """
    Plots the function ax^2 + bx using Matplotlib.

    Args:
        a: Coefficient of the x^2 term.
        b: Coefficient of the x term.
        x_min: Minimum value of x for the plot.
        x_max: Maximum value of x for the plot.
    """

    x = np.linspace(x_min, x_max, 100)  # Generate 100 points between x_min and x_max
    y = a * x**2 + b * x

    plt.plot(x, y)
    plt.xlabel('x')
    plt.ylabel('y')
    plt.title('GNU Plot of ax^2 + bx')
    plt.grid(True)
    plt.show()

# Example usage:
a = 2
b = -5
x_min = -3
x_max = 3

gnu_plot(a, b, x_min, x_max)
