mathfun_value -> double