Exemplo n.º 1
0
         time.sleep(2)
         menu()
     except:
         exception()
 elif choice == 14:
     try:
         a = float(input("Enter a number to find its Tan in Degrees: "))
         cal.tandeg(a)
         time.sleep(2)
         menu()
     except:
         exception()
 elif choice == 15:
     try:
         a = float(input("Enter a number to find its Cosecant in Degrees: "))
         cal.cosecdeg(a)
         time.sleep(2)
         menu()
     except:
         exception()
 elif choice == 16:
     try:
         a = float(input("Enter a number to find its Secant in Degrees: "))
         cal.secdeg(a)
         time.sleep(2)
         menu()
     except:
         exception()
 elif choice == 17:
     try:
         a = float(input("Enter a number to find its Cot in Degrees: "))
Exemplo n.º 2
0
        cal.sinrad(n)
    if choice == 11:

        cal.pie()
    elif choice == 12:
        n = float(input("Enter a number to find its sine in degrees:"))
        cal.sindeg(n)
    elif choice == 13:
        n = float(input("Enter a number to find its cossine in degrees:"))
        cal.cosdeg(n)
    elif choice == 14:
        n = float(input("Enter a number to find its tan in degrees:"))
        cal.tandeg(n)
    elif choice == 15:
        n = float(input("Enter a number to find its cosec in degrees:"))
        cal.cosecdeg(n)
    elif choice == 16:
        n = float(input("Enter a number to find its sec in degrees:"))
        cal.secdeg(n)
    elif choice == 17:
        n = float(input("Enter a number to find its cot in degrees:"))
        cal.cotdeg(n)
    elif choice == 18:
        n = float(input("Enter a number to find its natural logs:"))
        cal.ln(n)
    elif choice == 19:
        n = float(input("Enter a number to find its Base 10 logs:"))
        cal.logten(n)

    elif choice == 20:
        n1 = float(input("Enter a base  number:"))