can caculate the function but the result is NAN