Location parameter is nan, but must be finite!

Thank you Niko, my code runs after using the print statement to debug. the error was in x1 and x2, I forgot to add them into for loops, which cause the nan values.

2 Likes