Exemple #1
0
    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:"))
        n2 = float(input("Enter a number to find it's log to the:"))
        cal.logbasex(n1, n2)
    elif choice == 21:
        n = float(input("Enter a number to find it's square: "))
        cal.squareroot(n)
    elif choice == 22:
        n1 = float(input("Enter a base  number:"))
        n2 = float(input("Enter it's power:"))
        cal.powerof(n1, n2)