First commit

This commit is contained in:
2026-02-19 18:51:17 +02:00
commit 2d9b2318a9
16 changed files with 358 additions and 0 deletions

14
exercises/ch03/ex3_7.lua Normal file
View File

@@ -0,0 +1,14 @@
local function random_normal()
local u = math.random()
local v = math.random()
return math.sqrt(-2 * math.log(u, math.exp(1))) * math.cos(2 * math.pi * v)
end
local function generate()
for _ = 0, 10 do
local value = random_normal()
print(value)
end
end
generate()