Sine function in Python. How to work with sine in radians and degrees in Python

preview_player
Показать описание
Sine function in Python. How to work with sine in radians and degrees in Python
Рекомендации по теме
Комментарии
Автор

Thank you, you helped me out so much.

LanceAlonte-hksl
Автор

for anyone who's looking for getting sin and cos like calculators using python :
import math
ang = float(input("what's your angle ?: "))
the_divided_num = float(180 / ang)
x = math.sin(math.pi / the_divided_num)
print(x)
if you have a better way please tell me

mrassassinhunter
Автор

import math
sine_degrees = math.sin(math.radians(Your num in degrees)) will work if you want to put in your number in degrees

apex
Автор

why is this print(math.sin(90)) giving a diffrent answer from this print(math.sin(math.pi/2)) althoght its the same calculation

Wojbest_YT