Ask Your Question

Revision history [back]

Problem on advanced plotting

How can I resolvve this:

Create a plot for the following problem. Find the area that is inside the circle r=2, but outside the cardioid 2+2cos(θ).

My code:

var('a')

polar_plot([2,2+2*cos(a)],(a,0,2*pi))

When I add the parameter fill=RealNumber, the area is filled, but I can't control what the area; what means this parameter?