Message Boards Message Boards

GROUPS:

[✓] Plot a 2D Graph with two variables?

Posted 9 months ago
563 Views
|
4 Replies
|
4 Total Likes
|

sin2xcos²t where x has 3 values [π/4,π/6,π/12,] and t ranges from 0 to 3. The graph which is required is attached below.

Attachments:
4 Replies
Plot[Sin[2 \[Pi] {1/4, 1/6, 1/12}] Cos[t]^2, {t, 0, 3}]

Thank you very much for your kind reply sir.

 $Version
 (* 11.3.0 for Microsoft Windows (64-bit) (March 7, 2018) *)

 f[x_, t_] := Sin[2 x]*Cos[t]^2;

 Plot[f[#, t] & /@ {Pi/4, Pi/6, Pi/12} // Evaluate, {t, 0, 3}, PlotStyle -> {Black, {Black, Dashed}, {Black, 
 AbsoluteDashing[{2, 4}]}}, PlotLegends -> LineLegend[{"\!\(\*FractionBox[\(Pi\), \(4\)]\)", "\!\(\*FractionBox[\(Pi\), \(6\)]\)", 
 "\!\(\*FractionBox[\(Pi\), \(12\)]\)"}, LegendLabel -> "Label", LegendFunction -> (Framed[#, RoundingRadius -> 5] &), 
 LegendMargins -> 5], AxesLabel -> {"\!\(\*FractionBox[\(Gt\), \(Pi\)]\)", "CAB"}]

. enter image description here

Regards,MI

Thank you very much for your kind reply sir.You have really explained with details.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract