Let a function $f : R \to R$ be defined as, $f(x) = \begin{cases} \sin x - e^x & \text{if } x \le 0 \\ a + [-x] & \text{if } 0 < x < 1 \\ 2x - b & \text{if } x \ge 1 \end{cases}$
Where $[x]$ is the greatest integer less than or equal to $x$. If $f$ is continuous on $R$, then $(a + b)$ is equal to:
- (1)
$4$
- (2)
$3$
- (3)
$2$
- (4)
$5$
Show answer
Option (2) is correct.
Key from source paper