cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Three-dimensional piecewise function plotting

sfan
1-Newbie

Three-dimensional piecewise function plotting

Hi, everyone,

The function I am going to plot has two sets within the range x:(0,1) and y: (0,1),

when the square is split into two triangular.

But the loop I write only plot the latter set that I wrote.

So how to plot both of them?

Looking forward to hear from you!

Best

Shawn

1 ACCEPTED SOLUTION

Accepted Solutions
RichardJ
19-Tanzanite
(To:sfan)

Unless you use a return statement a program returns only what is on the last line. A return statement forces the program to return a particular result and then exit.

View solution in original post

2 REPLIES 2
RichardJ
19-Tanzanite
(To:sfan)

Unless you use a return statement a program returns only what is on the last line. A return statement forces the program to return a particular result and then exit.

sfan
1-Newbie
(To:RichardJ)

Thank you Richard, that's very helpful.

Top Tags