+ 1
Upon having the input as sin(x)=1 or -1 or related values the order in the list isn't proper any more, try it.
https://code.sololearn.com/cNPodjnuyj22/?ref=app I could always remove the if statement and decide negativity via exponent (-1)**(i), as a matter of fact I will but I wanna deal with this issue simultaneously.
2 Antworten
+ 3
sorry
I was wrong.
It is necessary to include processing at -1
+ 1
lis.append(int(i*180 +math.asin(x)*180/math.pi))
or
lis.append(int(i*180 +math.degrees(math.asin(x))))
And the 'if' sentence is unnecessary