a = 0 --math.rad(0)
print(math.cos(a), math.sin(a))
-- 1.0, 0.0
a = math.rad(90)
print(math.cos(a), math.sin(a))
-- 0.0, 1.0
a = math.rad(180)
print(math.cos(a), math.sin(a))
-- -1.0, 0.0
a = math.rad(270)
print(math.cos(a), math.sin(a))
-- 0.0, -1.0
The zeroes might be almost nearly zero though since floating point precision issues may arise.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Technically those functions do not even work on angles, they take double the area of a unit circle sector as an argument. Because it is a unit circle, its sector area happens to coincide with angle of that sector, by factor of two. Hyperbolic trigonometric functions take double the area of a hyperbola sector.