4
$\begingroup$

There are a number of 'popular' parametric plots that draw recognisable pictures - of course I must learn more about the 'sheep curve'.

It's straightforward to 'find' them using a natural language query and they are returned as an object which I can then use to generate a plot or an image but how would I go one level deeper and grab the parametric equations and use a Plot function directly?

curve = ctrl-= sheep curve
(*  Entity["PopularCurve","SheepCurve"] *)
curve["Image"] (* works fine *)
f=curve["ParametricEquations"] (* very long and ugly bunch of trig *)
Plot[f, {\[FormalT,0,2 Pi]}] (* Doesn't work *)

I'm close(?), there's something wrong with the parameter being passed to the Plot function but I can't see it.

$\endgroup$
  • 1
    $\begingroup$ Try f = Entity["PopularCurve", "SheepCurve"]["ParametricEquations"]; and then ParametricPlot[f[t], {t, 0, 2 π}]. $\endgroup$ – aardvark2012 Oct 25 '17 at 22:54
7
$\begingroup$

Here is how you can find out the info you need to make the plot

sheep

Consequently, the plot can be made with

ParametricPlot[f[t], {t, 0, 2 π}]

which gives

plot

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.