0
$\begingroup$

There are three bivariate functions with respect to x and y. Slice x into 100 pieces from 0 to 1. Starting from each slice, calculate the function with respect to y. Find the maximum value of each function on each slice. Compare the maximum values of all three functions on each slice, choose the maximum one, and store the corresponding y value that makes the function value true. Each slice corresponds to such a y value. Finally, plot the values with x-axis as horizontal axis and y-axis as vertical axis. How to implement this in Matlab or Mathematica? enter image description here enter image description here

$\endgroup$
6
  • $\begingroup$ I have tried, but I cannot divide the piecewise function. $\endgroup$ Mar 14 at 18:13
  • $\begingroup$ I suggest starting with a simpler problem and working your way up. For example, fix x at some value, say 1. Now find the max of one of the functions, say f[1,y]:=1+y^2. Once you can solve this, you can likely solve the rest... $\endgroup$
    – bill s
    Mar 14 at 19:18
  • $\begingroup$ I want get a line of these solutions. $\endgroup$ Mar 14 at 23:42
  • $\begingroup$ I see you want to solve may such equations, but if you can't solve it once, how can you expect to solve it 100 times? $\endgroup$
    – bill s
    Mar 14 at 23:57
  • $\begingroup$ It's not that I don't want to solve, it's that I want to get 100 solutions by traversing and then connect these points into a line. $\endgroup$ Mar 15 at 0:09

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.