-- Import the math library (it's usually available by default)
local math = require("math")
-- Define an angle in radians
local angle = math.pi / 4
-- Calculate the sine of the angle
local sine_value = math.sin(angle)
-- Print the result
print("The sine of the angle is: " .. sine_value)
To embed this program on your website, copy the following code and paste it into your website's HTML: