Message Boards Message Boards

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

GROUPS:

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:
POSTED BY: KRISHNAPRASAD NAIR
Answer
3 months ago
Plot[Sin[2 \[Pi] {1/4, 1/6, 1/12}] Cos[t]^2, {t, 0, 3}]
POSTED BY: Frank Kampas
Answer
3 months ago

Thank you very much for your kind reply sir.

POSTED BY: KRISHNAPRASAD NAIR
Answer
3 months ago
 $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

POSTED BY: Mariusz Iwaniuk
Answer
3 months ago

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

POSTED BY: KRISHNAPRASAD NAIR
Answer
3 months ago

Group Abstract Group Abstract