Skip to main content
1-Visitor
March 25, 2015
Solved

Three-dimensional piecewise function plotting

  • March 25, 2015
  • 1 reply
  • 1843 views

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

Best answer by RichardJ

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.

1 reply

RichardJ19-TanzaniteAnswer
19-Tanzanite
March 25, 2015

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.

sfan1-VisitorAuthor
1-Visitor
March 28, 2015

Thank you Richard, that's very helpful.