Find z based on formula? How to solve, and draw an algorithm?

You are given the formula for z. So what are you trying to find? Also it seems that z is defined by the value of k, but z is not a function of k !!!
Can you please post the entire problem?
 
Task is to calculate z, based on entered values. Here is the problem, and my solution (I dont no weather is it correct)? Thank you.IMG_20190916_084919.jpg
 
Ah! So z is a function of x, y, and k.

That looks almost correct. What part were you unsure about?

The notation max2(x, y) is not standard, in my experience; I would guess it means [max(x,y)]2. But in your algorithm, you appear to be treating it as max(x2,y2), which not the same (unless x and y are known to be positive). There is also another small error in your second case.

Did you copy the problem itself exactly as given to you? Were you given a definition of the notation?
 
Yes, I copy it exactly.. No I dont have definition of notation. Instead of [x][/2]>[y][/2] there should be x>y?
 
Yes, that's how I understand the problem.

Do you see the other little error, which may just be a slip? The last term in the second case should always be "- x" (before simplifying).
 
Now I see. Thank you for suggestions.
p.s. sorry for grammar mistakes (If I made them), greetings from Serbia
 
Top