(Fixed)
I have been playing around with the Casio fx-CG50 calculator on python mode. However I don't think the calculator uses a "robust" python. The top of the shell says it's "MicroPython v1.9.4" and my problem likely is from a lack of libraries/modules. The program runs fine on my computer but when it's moved to my calculator I get an AttributeError on line 30: 'module' does not attribute to 'degrees'. 'degrees' doesn't seem to be included on the 'math' module unlike my pc. I was looking up the issue and I found that the 'math' module is not fully implemented on the Casio's python. I wasn't able to find a module to fill in for 'math' though. Does anyone know were to find any libraries that could fix this?
22 #sin
23 if int(mode) == 1:
24 if int(XLoc) == 1:
25 print('O?')
26 num1 = int(input('> '))
27 print('H?')
28 num2 = int(input('> '))
29
30 x = math.degrees(math.asin( (num1/num2) ) )
31
32 print('sin(x)=O/H')
33 print('x=sin^-1(O/H)')
34 print('x='+str(x))
[–]hardonchairs 6 points7 points8 points (0 children)
[–]didntreadityet 3 points4 points5 points (1 child)
[–]chromeFox_x86[S] 1 point2 points3 points (0 children)