Ask Your Question
0

Problem on advanced plotting [closed]

asked 2020-07-08 21:18:43 +0100

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?

edit retag flag offensive reopen merge delete

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 2020-07-09 09:58:32 +0100

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]})

edit flag offensive delete link more

Comments

Thanks man!

gabrielromao5 gravatar imagegabrielromao5 ( 2020-07-09 16:44:54 +0100 )edit

Question Tools

1 follower

Stats

Asked: 2020-07-08 21:16:04 +0100

Seen: 637 times

Last updated: Jul 08 '20