Re: Manipulate function
- To: mathgroup at smc.vnet.net
- Subject: [mg100931] Re: Manipulate function
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Thu, 18 Jun 2009 06:18:05 -0400 (EDT)
- Organization: Uni Leipzig
- References: <h1cvbs$jif$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
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 ? >