Professional Documents
Culture Documents
DTC02: การคานวณเชิงตัวเลขด้วยจูเลีย
จัดทาโดย
น ยกนตพงศ ล ง ดม ร ส 613040161-9
กลุ่มที่ 10
เสนอ
3
1. a) a, n a mod n a n
b) x0 583030452-4 x0 = 24
c) g=3 = g x0 mod 7 = g x0 +2 mod 7
x0=24
g=3
gamma=power_mod(g,x0,7)
gamma
1
1. 1
Souce code
16
x
2. y=e x 1 4
Souce code
17
3. f (x, y)
p
q
f (x, y) = x+ y+
Souce code
A=
B=
f.(A, B) =
18
4. g(f (x))
f (x) = ln(x)
g(x) = x
Souce code
A = rand(1 : 10, 5, 5)
A=
g.(f.(A)) =
19
5. correlated time series
xt+1 = xt + "t+1
10
Souce code
20