I have two piecewise function
equ1 = Piecewise[{{0.524324 + 0.0376478x, 0.639464 <= x <= 0.839322}}] equ2 = Piecewise[{{-0.506432 + 1.48068x, 0.658914 <= x <= 0.77085}}] Now, I am trying to solve equ1 = equ2.
Firstly I tried FindRoot:
FindRoot[equ1 == equ2, x] But the output is x = 0. I can only get the correct answer by set search starting point 0.7. How can I direct get the answer without set starting point?
Secondly, I tried code Reduce:
Reduce[equ1 == equ2, x] However, the error appear. The good news is Reduce do provide the correct answer for my equation. The error is:
Reduce::ratnz: Reduce was unable to solve the system with inexact coefficients. The answer was obtained by solving a corresponding exact system and numericizing the result. Do I have other way to solve those two piecewise function?
Solve[0.524324 + 0.0376478 x == -0.506432 + 1.48068 x, x]? or evenFindRoot[equ1 == equ2, {x, .7}]? $\endgroup${Plot[equ1 - equ2, {x, 1/2, 1}], FindRoot[equ1 == equ2, {x, 7/10}]}. $\endgroup$Reducecommand works for me. The message is just a warning, not an error. $\endgroup$