+ 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.

29th May 2017, 9:44 PM
Simon
Simon - avatar
2 ответов
+ 3
sorry I was wrong. It is necessary to include processing at -1
29th May 2017, 10:36 PM
Suyasa
Suyasa - avatar
+ 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
29th May 2017, 10:26 PM
Suyasa
Suyasa - avatar