Group Abstract Group Abstract

Message Boards Message Boards

0
|
7.1K Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

how do I plot this...

Posted 10 years ago

how do I plot this on wolfram

y(x)=4 for 0<x<pi/2 y(x)=-4 for -pi/2<x<0 y(x)=0 for -pi<x<-pi/2 and pi/2<x<pi

POSTED BY: Pamela Vilela
4 Replies
Posted 10 years ago

You rock, thanks a lot!

POSTED BY: Pamela Vilela
Posted 10 years ago

Looks like a good candidate for Piecewise:

Plot[Piecewise[{{-4, -Pi/2 < x <= 0}, {4, 0 < x < Pi/2}}, 0], {x, -Pi, Pi}]
POSTED BY: Eric Rimbey
Posted 10 years ago

Wow, quite complex! thank you so much!... Can I ask, if it says that is periodic over an interval of 2pi, does it mean that the graph will entirely be on positive-y side throughout the positive-x side and entirely be on the negative-y side throughout the negative-x side?

POSTED BY: Pamela Vilela
Posted 10 years ago
Plot[Piecewise[{{4, 
    0 < x < \[Pi]/2}, {-4, -\[Pi]/2 < x < 0}, {0, -\[Pi] < x < -\[Pi]/
     2}, {0, \[Pi]/2 x < \[Pi]}}], {x, -5, 5}]
POSTED BY: Okkes Dulgerci
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard