Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

sin and cos in python

import math

angle_in_degrees = 45
angle_in_radians = math.radians(angle_in_degrees)

sin_of_angle = math.sin(angle_in_radians)
cos_of_angle = math.cos(angle_in_radians)
Comment

how to import sin and cos in python

#A demo of sin() function
 
from math import sin
from math import cos
Comment

PREVIOUS NEXT
Code Example
Python :: turn list of tuples into list 
Python :: update python mac 
Python :: python version kali linux 
Python :: reload function jupyter notebook 
Python :: python telegram bot send image 
Python :: jupyter notebook make new lines 
Python :: python selenium full screen 
Python :: get columns containing string 
Python :: open mat python 
Python :: python pandas series to dataframe 
Python :: python copy file to new filename 
Python :: pynput left click command 
Python :: get stock data in python 
Python :: Example XlsxWriter in Python 
Python :: python create virtualenv 
Python :: python current working directory 
Python :: find a file in python 
Python :: python tkinter askopenfile 
Python :: map function using lambda in python 
Python :: if keyboard.is_pressed 
Python :: python oprators 
Python :: json.dumps no spaces 
Python :: pyhton regex to find string in file 
Python :: import matplotlib 
Python :: tkinter frame inside frame 
Python :: how to keep a webdriver tab open 
Python :: current time python 
Python :: how to shutdown a windows 10 computer using python 
Python :: torchvision.transforms 
Python :: python more order of columns 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =