Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
The Angles of a Triangle solution in Clear category for The Angles of a Triangle by mz97
import math
tab_sin=[]
tab_sinr=[]
tab_sin2=[]
for i in range(90):
tab_sin.append(round(math.sin(math.radians(i)),5))
tab_sinr.append(round(math.sin(math.radians(i)),2))
tab_sin2.append(round(math.sin(math.radians(i+90)),5))
def search(mylist,e,q):
i=0
if e in mylist == True:
return mylist.index(e)
if q<0:
while mylist[i]>e:
i+=1
return i+89
if (e in tab_sinr) == True:
return tab_sinr.index(e)
while mylist[i]
Oct. 22, 2016