Processing math: 33%

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 2 years ago

Cyrille gravatar image

Max return a partial false result

Suppose I have four (may be more) linear functions say :

f0(x) = -3 x
f1(x) = -3 x + 1
f2(x) = -6 x + 2
f3(x) = -9 x + 3

for x[0,1]. They are easy to plot

plot((f0(x),f1(x),f2(x),f3(x)),(x,0,1),color=['red','blue','green','cyan'])

So one can see that for x[0,1/3[ max and for x \in ]1/3, 1], \max{f0(x),f1(x),f2(x),f3(x)} = f1(x).

But

max(f0(x),f1(x),f2(x),f3(x))

return only f1(x). How to correct this result ?