One additional thing:
i need to plot a circular region between 2 circles of radius 3 and 6, with
3*pi/2 to pi/2 and I have tried the following code but keep getting an
Assertion error:
l1=[(3*cos(phi),3*sin(phi)) for phi in srange(3*n(pi)/2,n(pi)/2,0.01)]
l2=[(6*cos(phi),6*sin(phi)) for phi in srange(3*n(pi)/2,n(pi)/2,0.01)]
l2.reverse()
figure4=polygon(l1+l2)
figure4.show()
figure4.save('/home/thedoctor/Documents/figure4.svg')
Thanks a lot!
-Michael D
On Sunday, July 8, 2012 10:44:31 AM UTC-4, The Doctor (Michael) wrote:
>
> Hullo.
>
> I am new to Sage, but am hoping that Sage will provide a good alternative
> to Maple, and MatLab; and that I can use Sage in my new job.
>
> Basically, I am now a solution author for Chegg and will be writing
> solutions for Calculus and Analysis textbooks mainly. For my 1st
> assignment, I need to be able to draw various regions (domains) to aid in
> setting up iterated integrals in rectangular and polar coordinates (and
> eventually spherical and cylcindrical coordinates as well).
>
>
> Right now, I have 2 questions.
>
> (1) I need to use Sage to graph three-fourths of a circle with radius = 4
> (from 0 to 3*pi/2). Then I also need for the area between this arc and the
> x-axis (for Quadrants 1 and 2) and the y-axis (for Quadrant 3) to be shaded
> and I need x and y labels for the coordinate system.
>
> (2) I need to be able to draw a region D, where D is a triangular region
> with vertices (0,0), (2,1), (0,3).
>
> I have literally just started using Sage (and am not *terribly* efficient
> with MatLab, and Maple) and need some help here. Thanks,
>
> -Michael D
>
>
--
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