Got error on wrong value, but really cannot find where my code is worng. thanks

Here’s a thread with the checklist for all the common mistakes on this function.

I believe that incorrect answer (0.171…) is what you get if you neglect the point about transposing the inputs. Here’s a thread which explains why that is required.