Message Boards Message Boards

0
|
4587 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Plot multiple functions

Posted 5 years ago

hi, iam new in the community. i would like to ask how to plot two different functions with different intervals

for example

y=3x+3, x>=2

y=5x+2 x<1

POSTED BY: anestis zlatkos
Posted 5 years ago

You could use Show to "merge" plots

Show[
    Plot[3 x + 3, {x, 2, 4}],
    Plot[5 x + 2, {x, -2, 1}],
    PlotRange -> All, AxesOrigin -> {0, 0}
 ]

enter image description here

POSTED BY: Hans Milton
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract