0

I'm trying to graph this function, the plot shows up but has no content any help would be appreciated.

1 + 2 v^2 (1 - Cos[x]) + 2 vSin[x]
Manipulate[Plot[T, {x, 0, 6 Pi}], {v, 1, 100}]
m_goldberg
  • 107,779
  • 16
  • 103
  • 257
Alan
  • 1
  • What is T? Why are you multiplying something by your Manipulate call? Read the docs. – b3m2a1 Nov 17 '17 at 05:17
  • May be you meant this T0[v_] := 1 + 2 v^2 (1 - Cos[x]) + 2 v Sin[x]; Manipulate[ Plot[T0[v], {x, 0, 6 Pi}], {v, 1, 100} ] You need to define a function first to plot it. – Nasser Nov 17 '17 at 05:17

1 Answers1

1

It's simple,because v is not set here, mathematica does not know this is the variable for manipulate.To solve this all you have to do is to write the function inside the manipulate,like this:

Manipulate[Plot[1 + 2 v^2 (1 - Cos[x]) + 2 v*Sin[x], {x, 0, 6 Pi}], {v, 1, 100}]
LCarvalho
  • 9,233
  • 4
  • 40
  • 96
t-smart
  • 2,031
  • 8
  • 21