# ######## Constant calculation with multiplication ################## print('\nNow if we Multiply (*) pi=3.14 Constant right side of the calculation, example: Unc(3, 0.5) * Unc(math.pi)') c = a * Unc(math.pi) print(c) print('\nNow if we Multiply (*) pi=3.14 Constant left side of the calculation, example: Unc(math.pi) * Unc(3, 0.5)') d = Unc(math.pi) * a print(d) input("Enter any key to continue ...........") ##################################################################### # ######## Constant calculation with division ################## a = Unc(3, 0.5) print('pi is ',math.pi) print('\nNow if we divided (/) pi=3.14 Constant as example: Unc(3, 0.5) / Unc(math.pi)sss') c = a / Unc(math.pi) print(c) print('\nNow if we divided (/) pi=3.14 Constant as example: Unc(math.pi) / Unc(3, 0.5)') d = Unc(math.pi) / a print(d) ################################################################# input("Enter any key to continue ...........\n") # ######## Natural logarithm - ln(x) calculation with pi constant ############## print('\nNow if add (+) pi=3.14 Constant with log as example: a.ulog() + Unc(math.pi)') k = a.ulog() + Unc(math.pi) print(k) # #################################################################
input("Enter any key to continue ...........") sqrt = a.sqrt() print(sqrt) ################################################# # ######## Natural logarithm - ln(x) Calculation ############## print('\nPerform Natural logarithm calculation:') input("Enter any key to continue ...........") ln = a.ln() print(ln) ################################################# # ######## Normal log (base-10 logarithm) - Calculation ############## print('\nPerform base-10 logarithm calculation:') input("Enter any key to continue ...........") log =a.ulog() print(log) ################################################# # ######## e^x - Calculation ############## print('\nPerform e^x calculation:') input("Enter any key to continue ...........") uexp =a.uexp() print(uexp) ################################################# # ######## sin - Calculation ############## print('\nPerform sin calculation:') input("Enter any key to continue ...........") sin = np.sin(a) print(sin)