On Monday, July 16, 2012 12:49:32 AM UTC+2, The Doctor (Michael) wrote:
>
> Yes,that is correct Jason.Thanks. 
>
> i have another question along the same vein. I need to plot a polar region 
> between 2 circles of radius 1 and 2, from pi/4 <= theta <M= 3*pi/4. Here is 
> what I tried, but I got a bunch of errors:
>
> a=polar_plot(1,2,(pi/4,3*pi/4),ymin=-2,color='black',
> fill=True,fillcolor='blue',axes_labels=['x','y'],fontsize =16)
>
> Thanks,
> -Michael D
>

l1=[(cos(phi),sin(phi)) for phi in srange(n(pi)/4,3*n(pi)/4,0.01)]
l2=[(2*cos(phi),2*sin(phi)) for phi in srange(n(pi)/4,3*n(pi)/4,0.01)]
l2.reverse()
p=polygon(l1+l2)
l=line(l1+l2+[(cos(n(pi)/4),sin(n(pi)/4))],color='black')
(p+l).show(xmin=-2,xmax=2,ymin=-2,ymax=2,axes_labels=['x','y'],fontsize =16)
 

>
> On Thursday, July 12, 2012 11:58:35 PM UTC-4, Jason Grout wrote:
>>
>> On 7/12/12 6:22 PM, The Doctor (Michael) wrote: 
>> > 
>> myArc=polar_plot(4,(0,3*pi/2),ymin=4,fill=true,fillcolor='blue',axes_labels=['x','y'],fontsize
>>  
>>
>> > =16) 
>>
>> Your ymin is 4.  Shouldn't it be -4? 
>>
>> Thanks, 
>>
>> Jason 
>>
>>
>>
>>

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to