I've got a piecewise function that is defined as follows:
f[a_, b_, c_, d_] := d + a /; a < b; f[a_, b_, c_, d_] := d + b + (a - b)/10 /; a > b && b + (a - b)/10 < c; f[a_, b_, c_, d_] := d + c /; b + (a - b)/10 >= c;
There is nothing fancy or complicated here. This function basically has three linear regions; the only difference between these regions is the slope of the line.
I want to solve for the intersection point of two different cases of this function, for example:
Solve[f[x, 6.55, 6.55, 5.32] == f[x, 5.5, 6.5, 5.52], x]
But I get this error:
Solve::inex: Solve was unable to solve the system with inexact coefficients or the system obtained by direct rationalization of inexact numbers present in the system. Since many of the methods used by Solve require exact input, providing Solve with an exact version of the system may help. >>
I'm not sure what it means by "inexact coefficients" of "an exact version of the system".
I also tried
NSolve, but this returns the original expression unchanged.