Professional Documents
Culture Documents
1. AC tokovi snaga
Si∗ Pi − jQi
I¯i = = , (2)
V̄i∗ V̄i∗
Pi − jQi ∑
n
= Yij V̄j . (3)
V̄i∗ j=1
TIPOVI SABIRNICA
∑
n
Pi = V i Vj (Gij cos θij + Bij sin θij )
j=1
(4)
∑n
Q i = Vi Vj (Gij sin θij − Bij cos θij ).
j=1
Pi = Ppi − Pdi
(5)
Qi = Qpi − Qdi ,
Pi − jQi ∑
n
= Yij V̄j , ∀i ∈ N , (7)
V̄i∗ j=1
∑
n
Pi = V i Vj (Gij cos θij + Bij sin θij )
j=1
(8)
∑n
Q i = Vi Vj (Gij sin θij − Bij cos θij ),
j=1
za ∀i ∈ N .
AC TOKOVI SNAGA
∑
n
fPi (x) = Vi Vj (Gij cos θij + Bij sin θij ) − Pi = 0
j=1
(9)
∑
n
fQi (x) = Vi Vj (Gij sin θij − Bij cos θij ) − Qi = 0,
j=1
za ∀i ∈ N .
AC TOKOVI SNAGA
df (x0 ) (x − x0 )2 d2 f (x0 )
f (x) = f (x0 ) + (x − x0 ) + + ..., (11)
dx 2! dx2
odnosno:
∑∞
1 df n (x0 )
f (x) = n
(x − x0 )n . (12)
n=0
n! dx
MACLAURINOV RED FUNKCIJE JEDNE REALNE VARIJABLE
20
f (x)
h(x)
10
f (x)
−3 −2 −1 0 1 2 3
x
20
f (x)
h(x)
10
f (x)
−3 −2 −1 0 1 2 3
x
20
f (x)
h(x)
10
f (x)
−3 −2 −1 0 1 2 3
x
20
f (x)
h(x)
10
f (x)
−3 −2 −1 0 1 2 3
x
20
f (x)
h(x)
10
f (x)
−3 −2 −1 0 1 2 3
x
∆x = x − x0 , (17)
Promatrajmo sada funkciju dvije realne varijable f (x, y), Taylorov red
u okolini tačke (x0 , y0 ) ima oblik:
∂f (x0 , y0 ) ∂f (x0 , y0 )
f (x, y) = f (x0 , y0 ) + (x − x0 ) + (y − y0 )
∂x ∂y
(x − x0 ) ∂ f (x0 , y0 )
2 2 2
∂ f (x0 , y0 )
+ + (x − x0 )(y − y0 )
2 ∂x2 ∂x∂y
(y − y0 )2 ∂ 2 f (x0 , y0 )
+ + . . . (19)
2 ∂y 2
APROKSIMACIJA FUNKCIJE DVIJE REALNE VARIJABLE
1 URL:https://math.libretexts.org/Bookshelves/Calculus
(visited on 11/06/2019).
APROKSIMACIJA FUNKCIJE DVIJE REALNE VARIJABLE
2 URL: https://math.libretexts.org/Bookshelves/Calculus
(visited on 11/06/2019).
GRADIJENT FUNKCIJE
∂y
∂y
HESSIAN FUNKCIJE
df (x0 )
h(x) = f (x0 ) + (x − x0 ) . (31)
dx
Uzimajući da je:
∆x = x − x0 , (32)
može se pisati:
df (x0 )
h(x) = f (x0 ) + ∆x . (33)
dx
NEWTONOV METOD ZA FUNKCIJU JEDNE REALNE VARIJABLE
f (x0 )
x = x0 + ∆x = x0 − . (36)
f ′ (x0 )
NEWTONOV METOD ZA FUNKCIJU JEDNE REALNE VARIJABLE
f (x) = x2 − 2x − 3. (37)
gdje je:
∆x0 = x − x0 = x − 5. (40)
NEWTONOV METOD ZA FUNKCIJU JEDNE REALNE VARIJABLE
h0 (x) = 0, (41)
odnosno:
−12
∆x0 = = −1.5 (42)
8
Prema tome, korijen je:
f (x)
10 h0 (x)
5
f (x)
−5
−2 −1.5 −1 −0.5 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5
x
Sada je:
−2.25
∆x1 = = −0.45. (45)
5
Prema tome, korijen je:
f (x)
10 h1 (x)
5
f (x)
−5
−2 −1.5 −1 −0.5 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5
x
Sada je:
−0.2025
∆x2 = = −0.04939. (48)
4.1
Prema tome, korijen je:
f (x)
10 h2 (x)
5
f (x)
−5
−2 −1.5 −1 −0.5 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5
x
f, fp = univariate_function(x)
if abs(fp) < epsilon
break
end
xpre = copy(x)
x = x - f / fp
if abs(x - xpre) <= tolerance
converged = true
end
end
if converged
println("Algorithm found the solution $x in $iteration iterations.")
else
println("Algorithm did not converge in $iteration iterations.")
end
end
NEWTONOV METOD ZA FUNKCIJU JEDNE REALNE VARIJABLE
f (x(ν) )
∆x(ν) = − , (50)
f ′ (x(ν) )
Početna tačka
Sada je:
5
∆x0 = = 0.83. (53)
6
Prema tome, korijen je:
f (x)
10 h0 (x)
5
f (x)
−5
−2 −1.5 −1 −0.5 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5
x
Sada je:
5
∆x1 = = −0.1633. (56)
6
Prema tome, korijen je:
f (x)
10 h1 (x)
5
f (x)
−5
−2 −1.5 −1 −0.5 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5
x
Uzimajući da je:
∆x = x − x0
(59)
∆y = y − z0 ,
sistem jednačina se može predstaviti kao:
[ ] [ ] ∂f1 (x0 , y0 ) ∂f1 (x0 , y0 ) [ ]
∆x
h1 (x, y) f1 (x0 , y0 ) ∂x ∂y
= + . (60)
h2 (x, y) f2 (x0 , y0 ) ∂f2 (x0 , y0 ) ∂f2 (x0 , y0 ) ∆y
∂x ∂y
NEWTONOV METOD ZA FUNKCIJU DVIJE REALNE VARIJABLE
dok je Jacobian:
∂f1 (x0 , y0 ) ∂f1 (x0 , y0 )
∂x ∂y
J(x0 , y0 ) = ∇f (x0 , y0 )T = . (62)
∂f2 (x0 , y0 ) ∂f2 (x0 , y0 )
∂x ∂y
NEWTONOV METOD ZA FUNKCIJU DVIJE REALNE VARIJABLE
odakle je:
∆x = −[J(x0 , y0 )]−1 f (x0 , y0 ). (64)
Prema tome rješenje je određeno kao:
x = x0 + ∆x
(65)
y = y0 + ∆y.
JULIA: NEWTONOV METOD ZA FUNKCIJU DVIJE REALNE VARIJABLE
F, J = multivariate_function(x)
if minimum(abs.(J)) < epsilon
break
end
xpre = copy(x)
x = x - J \ F
if all(abs.(x - xpre) .<= tolerance)
converged = true
end
end
if converged
println("Algorithm found the solution $x in $iteration iterations.")
else
println("Algorithm did not converge in $iteration iterations.")
end
end
NEWTONOV METOD ZA NALAŽENJE
KORIJENA FUNKCIJA
Newtonov metod