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 :: how to round an array in python 
Python :: list comprehension if 
Python :: install SocketIO flask 
Python :: python convert string to byte array 
Python :: pandas series to tuple list 
Python :: dataframe standardise 
Python :: http client post python 
Python :: python regular expression remove numbers 
Python :: openpyxl full tutorial 
Python :: measure time per line python 
Python :: How do you print a integer in python 
Python :: Access the Response Methods and Attributes in python Get the HTML of the page 
Python :: outliers removal 
Python :: getting started with machine learning 
Python :: python epoch to datetime 
Python :: convert numpy array to cv2 image 
Python :: Python program to draw star 
Python :: install tensorflow gpu 
Python :: combination 
Python :: pandas profile report python 
Python :: strip first occurence of substring python 
Python :: python find object with attribute in list 
Python :: count elements in list 
Python :: python replace by dictionary 
Python :: slice dataframe pandas based on condition 
Python :: effektivwert python 
Python :: flask blueprint static folder 
Python :: run python notepad++ 
Python :: select rows from dataframe pandas 
Python :: concatenate python 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =