I have two functions $A(t)$ und $B(t)$ (given as a set of values) and I want to quantify how similar they are. In context: I want to check how good some approximation regarding the solution of an integro-differential equation is and it depends on some values $\gamma$. In order to compare the accuracy of this approximation, I want to compare the actual result with the approximation for different values of $\gamma$ in a given timeframe $T$. My approach was to use the maximal relative error, namely $\max_{t\in T}|\frac{A(t)-B(t)}{B(t)}|$, whereas $A(t)$ denotes the approximation and $B(t)$ is the actual solution.
However, it doesn't seem to be an appropriate way, as $B(t)$ as well as $A(t)$ become zero for some time $t\in T$, the relativ error explodes.
Is there any other error i could use to avoid this problem? As the range of $A(t)$ and $B(t)$ varies between one and minus one (most of the time), the absolute error wouldn't be a good method too....
Thanks already!