###START###
Function: plot_coordinate_plane
Description:
Sets up a coordinate plane for graphing lines and inequalities. This function establishes the figure size, limits, labels, grid style, and aspect ratio.
Parameters:
- Required:
- Optional:
- coord_size: Half-size of the coordinate plane to be displayed. Default value is 10.
Args: None
Function: plot_point
Description:
Plots a single point on the coordinate plane.
Parameters:
- Required:
- x: x-coordinate of the point.
- y: y-coordinate of the point.
- Optional:
- color: Color of the point, default is black.
- marker: Marker style for the point, default is 'o' for a circle.
- label: Label for the point.
Args: x, y
Function: draw_line
Description:
Draws a line on the coordinate plane based on the inequality sign. This function determines the line style based on the inequality and plots the line.
Parameters:
- Required:
- m: Slope of the line.
- b: Y-intercept of the line.
- ineq: Inequality sign: '<', '>', '<=', '>=', or '='.
- Optional:
- coord_size: Half-size of the coordinate plane.
- line_label: Label for the line.
Args: m, b, ineq
Function: shade_inequality
Description:
Shades the region based on the inequality sign of a line. This function determines the direction and area of shading based on the inequality.
Parameters:
- Required:
- m: Slope of the line.
- b: Y-intercept of the line.
- ineq: Inequality sign: '<', '>', '<=', '>='.
- Optional:
- coord_size: Half-size of the coordinate plane.
- color: Color of the shaded region.
- alpha_level: Transparency of the shaded region.
Args: m, b, ineq
Function: find_and_plot_intersection
Description:
Finds and plots the intersection of two lines. This function calculates the point where two lines intersect, if they are not parallel or identical, and plots the intersection point.
Parameters:
- Required:
- m1: Slope of the first line.
- b1: Y-intercept of the first line.
- m2: Slope of the second line.
- b2: Y-intercept of the second line.
- Optional:
- color: Color and marker style for the plotted intersection point.
Args: m1, b1, m2, b2
Function: plot_combined_shading_region
Description:
Plots the combined shading region (overlap) for two lines described by inequalities. This function identifies the common area that satisfies both inequalities and visualizes it on a coordinate plane. It's useful for understanding the intersection of two linear constraints.
Parameters:
- Required:
- m1: Slope of the first line.
- b1: Y-intercept of the first line.
- ineq1: Inequality sign for the first line: '<', '>', '<=', '>=', '='.
- m2: Slope of the second line.
- b2: Y-intercept of the second line.
- ineq2: Inequality sign for the second line: '<', '>', '<=', '>=', '='.
- Optional:
- coord_size (Half-size of the coordinate plane, default is 10).
Args: m1, b1, ineq1, m2, b2, ineq2
###END###
Instructions: Match each input with the appropriate function from the list. If no function fits, use "n/a". Also, specify the parameters for the function based on the input.
Input: [Description of the Input]
Function: [Name of the Matching Function or 'n/a']
Args: [Argument Values or 'n/a' if None]
Input: "Shade the inequality on the plot."
Function: shade_inequality
Args: n/a
Input: "Let's plot a coordinate plane."
Function: plot_coordinate_plane
Args: n/a
Input: "Draw a line with a slope of 2 and y-intercept of -3."
Function: draw_line
Args: 2,-3,'='
Input: "I need to plot the point (4, -2) on the graph."
Function: plot_point
Args: 4,-2
Input: "Can you find where two lines intersect?"
Function: find_and_plot_intersection
Args: n/a
Input: "Show me the overlap region for two inequalities."
Function: plot_combined_shading_region
Args: n/a
Input: "Add a point to this graph."
Function: plot_point
Args: n/a
Input: "Create a 3D plot."
Function: n/a
Args: n/a
Input: "Draw a line with a slope of 3 and with a y-intercept of -1 and the sign is less than."
Function: draw_line
Args: 3,-1,'<'
Input: "The line has an equation of y is less than 4x minus negative 4."
Function: draw_line
Args: 4,4,'<'
Input: "Shade the overlap between y's less than 1 third x plus 4 and y's greater than 20x minus 7."
Function: