0% found this document useful (0 votes)
6 views2 pages

Zto W1

The document provides instructions for creating parametric equations and plots for an ellipse centered at the origin with a major axis of 4 units and a minor axis of 2 units. It demonstrates the effects of rotating the ellipse by π/6 radians and shifting its center to (2,1) using parametric plots. The code snippets illustrate the implementation of these transformations in a plotting environment.

Uploaded by

xesitav127
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Zto W1

The document provides instructions for creating parametric equations and plots for an ellipse centered at the origin with a major axis of 4 units and a minor axis of 2 units. It demonstrates the effects of rotating the ellipse by π/6 radians and shifting its center to (2,1) using parametric plots. The code snippets illustrate the implementation of these transformations in a plotting environment.

Uploaded by

xesitav127
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Practical - 3

Question :- Write parametric equations and make a parametric plot for an ellipse centered at the
origin with horizontal major axis of 4 units and vertical minor axis of 2 units.
π
Show the effect of rotation of this ellipse by an angle of radians and shifting of the centre from (0,0)
6
to (2,1), by making a parametric plot
In[18]:= p[t_] := 2 * Cos[t] + I * Sin[t];

In[19]:= ParametricPlot{Re[p[t]], Im[p[t]]}, t, 0, 2 π, Axes → True,


Frame → False, AxesLabel → {"Re[z]", "Im[z]"}, PlotStyle → Dashed
Out[19]=
Im[z]

1.0

0.5

Re[z]
-2 -1 1 2

-0.5

-1.0

In[20]:= p1[t_] := p[t] * ExpI * Pi  6;

In[21]:= ParametricPlot{Re[p1[t]], Im[p1[t]]}, t, 0, 2 π, Axes → True,


Frame → False, AxesLabel → {"Re[z]", "Im[z]"}, PlotStyle → Dashed
Out[21]=
Im[z]

1.0

0.5

Re[z]
-2 -1 1 2

-0.5

-1.0
2

In[22]:= p2[t_] := p1[t] + (2 + I);


ParametricPlot{Re[p2[t]], Im[p2[t]]}, t, 0, 2 π, Axes → True,
Frame → False, AxesLabel → {"Re[z]", "Im[z]"}, PlotStyle → Dashed
Out[23]=
Im[z]

2.0

1.5

1.0

0.5

Re[z]
1 2 3 4

You might also like