Skip to content

Conversation

@Shreya2005-2005
Copy link

This PR adds documentation examples (doctests) for plotting max_symbolic and min_symbolic functions in src/sage/plot/plot.py. These examples demonstrate how these symbolic functions behave when passed to the standard plot() command.
Changes:

Added a new section under "We can also plot symbolic maximum and minimum functions::".

Included two new doctests:

plot(max_symbolic(x, 2), (x, 0, 4)).

plot(min_symbolic(x^2, x+2), (x, -2, 2)).

Verified that both examples return a Graphics object consisting of 1 graphics primitive.

Testing performed:

Ran local doctests using ./sage -t src/sage/plot/plot.py.

Confirmed the examples render correctly in the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant