Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'plotting piecewise formula' topicStudent Support Forum > General > "plotting piecewise formula"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
yehuda ben-shimol
10/29/06 04:38am

Hi,
Sure it can.
Use Which or Piecewise or nested If statements
for example
f[x_] := Piecewise[{{0, x <= -1}, {Sqrt[1 - x^2], -1 < x < 1}, {x, x >= 1}}];
Plot[f[x], {x, -5, 5}]

yehuda

URL: ,

Subject (listing for 'plotting piecewise formula')
Author Date Posted
plotting piecewise formula Iqram Mahmud 10/28/06 11:17am
Re: plotting piecewise formula yehuda ben-s... 10/29/06 04:38am
Re: plotting piecewise formula Mikel 10/30/06 09:28am
Re: plotting piecewise formula Iqram Mahmud 10/31/06 10:43pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic