Skip to content

Commit 88bf784

Browse files
committed
fixed bug
1 parent f837623 commit 88bf784

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/equity/finite_difference.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ fn fd(s0:f64,k:f64,risk_free_rate:f64,dividend_yield:f64,sigma:f64,time_to_mat:f
5757
price_grid[[(M-i) as usize,j as usize]] = (i as f64)*ds as f64;
5858
}
5959
}
60-
let mm = M as usize - ii as usize;
61-
println!("price_ {:?}",price_grid[[mm as usize as usize,0]]);
60+
61+
6262
let mut v_grid:Array2<f64> = Array2::zeros((M as usize +1,time_steps as usize+1));
6363
// Boundary condition
6464
// for j in 0..time_steps+1 {

0 commit comments

Comments
 (0)