Conditionals inside solve or fsolve (no, no, no!)
One more thing: using solve or fsolve on a function with conditionals is not likely to work (not surprisingly, since solving such equations is difficult).