liori
0
Q:

python tan

import math
x = 3.86356
math.floor(x)
#Returns: 3
math.ceil(x)
#Returns: 4
7
// Python mathematical functions include but are not limited to:
print(10+10) // Returns 20 (Addition)
print(10*10) // Returns 100 (Multiplication)
print(10/10) // Returns 1 (Division)
print(10**10) // Returns 10000000000 (10 to the power of 10, 10^10)
print(10-10) // Returns 0 (Subtraction)
print(10>100) // Returns False (If A is greater than B)
print(10<100) // Returns True (If A is less than B)
print(10==10) // Returns True (If A is equal to B)

import math // Required for the function below
print(math.pi) // Returns the first 15 decimal places of Pi
4
# Python code to demonstrate the working of tan() 
     
# importing "math" for mathematical operations  
import math  
    
a = math.pi / 6
     
# returning the value of tangent of pi / 6  
print ("The value of tangent of pi / 6 is : ", end ="")  
print (math.tan(a))  
0

New to Communities?

Join the community