@@ -63,11 +63,11 @@ def solve(self):
6363 V [i , tau ] = V [i , tau + 1 ] - (theta [i , tau ] * dt )
6464
6565 # setting boundary conditions
66- lower , upper = utility .BlackScholesHelper .set_boundary_conditions (self .equation , T , tau )
66+ lower , upper = utility .BlackScholesHelper ._set_boundary_conditions (self .equation , T , tau )
6767 V [0 , tau ] = lower
6868 V [self .equation .s_nodes , tau ] = upper
6969
70- delta , gamma , theta = utility .BlackScholesHelper .calculate_greeks_at_boundary (self .equation , delta , gamma , theta , tau , V , S , ds )
70+ delta , gamma , theta = utility .BlackScholesHelper ._calculate_greeks_at_boundary (self .equation , delta , gamma , theta , tau , V , S , ds )
7171
7272 end = time .perf_counter ()
7373 duration = end - start
@@ -137,7 +137,7 @@ def solve(self):
137137 gamma [1 :- 1 , tau ] = (V [2 :, tau ] - 2 * V [1 :- 1 , tau ] + V [:- 2 , tau ]) / (ds ** 2 )
138138 theta [1 :- 1 , tau ] = - 0.5 * (self .equation .sigma ** 2 ) * (S [1 :- 1 ]** 2 ) * gamma [1 :- 1 , tau ] - self .equation .rate * S [1 :- 1 ] * delta [1 :- 1 , tau ] + self .equation .rate * V [1 :- 1 , tau ]
139139
140- delta , gamma , theta = utility .BlackScholesHelper .calculate_greeks_at_boundary (self .equation , delta , gamma , theta , tau , V , S , ds )
140+ delta , gamma , theta = utility .BlackScholesHelper ._calculate_greeks_at_boundary (self .equation , delta , gamma , theta , tau , V , S , ds )
141141
142142 end = time .perf_counter ()
143143 duration = end - start
0 commit comments