Replaced custom exp function with the mathjs one.