Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (47.6k points)

I've been trying to get a fix and can't find why the error keeps appearing. Pmin, Pmax,w,fi1 and fi2 have all been assigned finite values

guess=Pmin+(Pmax-Pmin)*((1-w**2)*fi1+(w**2)*fi2)

When I remove this line from the code, the same error appears at the next line of code, again for no reason I can think of

1 Answer

0 votes
by (106k points)

Actually, you are missing a close parenthesis in this line:

fi2=0.460*scipy.sqrt(1-(Tr-0.566)**2/(0.434**2)+0.494

Browse Categories

...