Skip to main content
Commonmark migration
Source Link

#Python 2, 100 bytes

Python 2, 100 bytes

from math import*
x,a,b=input()
while a<=b:
    if round(sin(pi*a/180),5)==x:print a
    a=round(a+.001,3)

Try it online

#Python 2, 100 bytes

from math import*
x,a,b=input()
while a<=b:
    if round(sin(pi*a/180),5)==x:print a
    a=round(a+.001,3)

Try it online

Python 2, 100 bytes

from math import*
x,a,b=input()
while a<=b:
    if round(sin(pi*a/180),5)==x:print a
    a=round(a+.001,3)

Try it online

deleted 183 characters in body
Source Link
mbomb007
  • 23.5k
  • 7
  • 63
  • 135

#Python 2, 100 bytes

The question currently has incorrect examples (see my comments), so I went with the inequality that includes a and b, rather than the example which leaves out those solutions.

from math import*
x,a,b=input()
while a<=b:
    if round(sin(pi*a/180),5)==x:print a
    a=round(a+.001,3)

Try it online

#Python 2, 100 bytes

The question currently has incorrect examples (see my comments), so I went with the inequality that includes a and b, rather than the example which leaves out those solutions.

from math import*
x,a,b=input()
while a<=b:
    if round(sin(pi*a/180),5)==x:print a
    a=round(a+.001,3)

Try it online

#Python 2, 100 bytes

from math import*
x,a,b=input()
while a<=b:
    if round(sin(pi*a/180),5)==x:print a
    a=round(a+.001,3)

Try it online

Source Link
mbomb007
  • 23.5k
  • 7
  • 63
  • 135

#Python 2, 100 bytes

The question currently has incorrect examples (see my comments), so I went with the inequality that includes a and b, rather than the example which leaves out those solutions.

from math import*
x,a,b=input()
while a<=b:
    if round(sin(pi*a/180),5)==x:print a
    a=round(a+.001,3)

Try it online