Message Boards Message Boards

GROUPS:

Plot multiple functions

Posted 1 month ago
219 Views
|
1 Reply
|
0 Total Likes
|

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 1 month 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

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