Ask Your Question
0

Problem on advanced plotting [closed]

asked 4 years ago

gabrielromao5 gravatar image

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?

Preview: (hide)

Closed for the following reason the question is answered, right answer was accepted by gabrielromao5
close date 2020-07-09 16:45:24.449383

1 Answer

Sort by » oldest newest most voted
0

answered 4 years ago

Emmanuel Charpentier gravatar image

This parameter is documented in plot?? Your "best" option is probably polar_plot([2,2+2*cos(a)], (a, pi/2, 3*pi/2), fill={0:[1]})

Preview: (hide)
link

Comments

Thanks man!

gabrielromao5 gravatar imagegabrielromao5 ( 4 years ago )

Question Tools

1 follower

Stats

Asked: 4 years ago

Seen: 757 times

Last updated: Jul 08 '20