Hot answers tagged

1

Judging from the oscillations near $S=0$, it looks like the payoff function is causing these problems. Your payoff should go towards -1 as $S$ goes towards zero, but your computer might just evaluate it at $S=0$, producing nonsense as a result. Depending on the exact implementation, this will then spread through the neighborhood of that point, causing ...



Only top voted, non community-wiki answers of a minimum length are eligible