Ask Your Question
1

GRE Math Subject Test Sample Question #1 [closed]

asked 2010-10-17 16:33:15 +0200

ccanonc gravatar image

updated 2015-01-14 13:58:03 +0200

FrédéricC gravatar image

What is the length of the parametric curve: f(t) = (x,y) = (cos(t),sin(t)), for t in [0,Pi] ?

Update: Mike got the answer lightning-/mike-fast. Here's the output of parametric_plot() below:

alt text

Update 2: Per Mitesh's suggestion, I called parametric_plot() with keyword argument "aspect_ratio=1"; the image below looks more round with a 1:1 aspect ratio:

alt text

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by ccanonc
close date 2010-11-15 21:41:51

Comments

Should we use the plot option `aspect_ratio=1` here to make the semicircle appear more circular?

Mitesh Patel gravatar imageMitesh Patel ( 2010-10-17 18:55:20 +0200 )edit

Good point Mitesh. Is there a reason it's not the default?

ccanonc gravatar imageccanonc ( 2010-10-17 18:59:05 +0200 )edit

I think this is to avoid squashed plots, e.g., `parametric_plot((100*cos(x), sin(x)), (x, 0, pi), aspect_ratio=1)`.

Mitesh Patel gravatar imageMitesh Patel ( 2010-10-17 19:19:44 +0200 )edit

Maybe some library, say GraphicsMagick (a subset of ImageMagick) could intelligently use a heuristic to pick a better default aspect ratio? .... My 5.0 wishlist ;-)

ccanonc gravatar imageccanonc ( 2010-10-17 19:25:21 +0200 )edit

I think it would be a nice feature if all plot docstrings sucked in a note about useful common kwargs like aspect_ratio.

ccanonc gravatar imageccanonc ( 2010-10-17 19:27:27 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2010-10-17 17:35:33 +0200

Mike Hansen gravatar image

The curve is a semicircle with radius 1 -- it's length is $\pi$. You can use the arc-length formula to get this

$$ \int_0^\pi \sqrt{cos(t)^2+sin(t)^2} dt = \int_0^\pi 1 dt = \pi $$.

Finally, in Sage:

sage: parametric_plot((cos(x), sin(x)), (x, 0, pi))
sage: integrate(sqrt(cos(x)^2+sin(x)^2),x, 0, pi)
pi
edit flag offensive delete link more

Comments

Nice formatting!

ccanonc gravatar imageccanonc ( 2010-10-17 17:44:45 +0200 )edit

The MathJax "bar of inclusion" on the sqrt doesn't have a terminating down stroke before the "dt". ;p Outrageous!

ccanonc gravatar imageccanonc ( 2010-10-18 04:20:14 +0200 )edit

Does LaTex do that downstroke? Mine doesn't usually.

kcrisman gravatar imagekcrisman ( 2010-10-18 11:37:56 +0200 )edit

I was just joking. Mike's post is nearly flawless as usual.

ccanonc gravatar imageccanonc ( 2010-10-18 12:12:12 +0200 )edit

Question Tools

1 follower

Stats

Asked: 2010-10-17 16:33:15 +0200

Seen: 877 times

Last updated: Oct 17 '10