You are on page 1of 6

ร ยง น

DTC02: การคานวณเชิงตัวเลขด้วยจูเลีย

จัดทาโดย

น ยกนตพงศ ล ง ดม ร ส 613040161-9

กลุ่มที่ 10

เสนอ

ร งศ สตร จ รยพ ชษฐ ชยวธน กล


ผชวยศ สตร จ รยกรชวล ช ยผ

ร ยง นน ปนสวน นงข งร ยวช EN813403 ปฏบตก ร ลกก รส ส ร บบดจทล ล บบจ ล ง


ส ข วช วศวกรรมค มพว ต ร คณ วศวกรรมศ สตร ม วทย ลยข น กน
ภ คก รศกษ ปล ย ปก รศกษ 2563
- Sec No.

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

1. A 5⇥5 [1, 10]


A 3

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 = rand(1 : 10, 5, 5), B = rand(1 : 10, 5, 5)

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

x0 = 0 t = 0, . . . , T shocks {"t } iid standard normal T = 200

Souce code

20

You might also like