Skip to content

Commit c277a71

Browse files
committed
LS lookup table implemented.
1 parent 8518652 commit c277a71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/material.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ fn lindhard_scharff_stopping_power_constant(Za: f64, Zb: f64) -> f64 {
317317
}
318318

319319
pub fn lindhard_scharff_stopping_power_cross_section(Za: f64, Zb: f64, E: f64, Ma: f64) -> f64 {
320-
lindhard_scharff_stopping_power_constant(Za, Zb)*(E/Ma).sqrt()
320+
LS_STOPPING_CONSTANT_TABLE[Za as usize * Z_MAX + Zb as usize]*(E/Ma).sqrt()
321321
}
322322

323323
pub fn bethe_bloch_stopping_power_cross_section(Za: f64, Zb: f64, E: f64, Ma: f64) -> f64 {

0 commit comments

Comments
 (0)