MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Manipulate function


Hi,

M[x_, n_] := If[x < 0, n Sin[x], Cos[x]]

Manipulate[Plot[M[x, n], {x, -10, 10}], {n, 0, 1}]

?

Regards
   Jens

Przemyslaw Swatek wrote:
> hi !
> 
> I have some problem (Mathematica 6) - when I type
> Manipulate[Plot[If[x < 0, n Sin[x], Cos[x]], {x, -10, 10}], {n, 0, 1}]
> all is ok, but when i try:
> 
> M[x_]:=If[x < 0, n Sin[x], Cos[x]], {x, -10, 10}] and then
> 
> Manipulate[Plot[M[x], {x, -10, 10}], {n, 0, 1}] it doesn`t work - I
> cannot manipulate varible of n. Whay ?
> 


  • Prev by Date: Re: Help with Hold
  • Next by Date: Re: PDF import problem
  • Previous by thread: Re: Manipulate function
  • Next by thread: Re: Manipulate function