Please see Spiderflygrid2.mws
A spider is on the floor of a cubical room of side 1. Its position is given. Where must the fly position itself to be as far as possible from the spider?
My attempt minimizes the square of the twelve possible distances. This is m.
Partial derivatives of m are found with respect to xf (the x coord of the fly)
... & with respect to yf (the y coord of the fly)
These two equations are then solved simultaneously.
Maple gives an error message - is this due to the discontinuities in the expression m? Or (more likely) a fault in my Maple code?