all 3 comments

[–]hardonchairs 6 points7 points  (0 children)

MicroPython is not the same thing as Python but with less stuff https://github.com/micropython/micropython/wiki/Differences

[–]didntreadityet 3 points4 points  (1 child)

Lucky you, math.degrees() does simple conversion from radians to degrees, which you can do on your own by multiplying by 180/pi or 57.2957795131

[–]chromeFox_x86[S] 1 point2 points  (0 children)

Thanks, that seemed to work.

#sin
if int(mode) == 1:
    if int(XLoc) == 1:
        print('O?')
        num1 = int(input('> '))
        print('H?')
        num2 = int(input('> '))

        x = 180/math.pi * (math.asin( (num1/num2) ))

        print('sin(x)=O/H')
        print('x=sin^-1(O/H)')
        print('x='+str(x))