MathGroup Archive 2009

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

Search the Archive

Manipulate function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg100926] Manipulate function
  • From: Przemyslaw Swatek <pspsswatek at gmail.com>
  • Date: Thu, 18 Jun 2009 04:54:34 -0400 (EDT)

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: Solving Polynomial equation
  • Next by Date: How to define the coefficients of a polynomial to be real?
  • Previous by thread: Re: Solving Polynomial equation
  • Next by thread: Re: Manipulate function