Skip to content

Commit

Permalink
Simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
cpmech committed Jun 26, 2024
1 parent 30f80cf commit 8e060b4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions russell_lab/src/algo/interp_chebyshev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1030,13 +1030,9 @@ mod tests {

// check adapted degrees
print!("{:0>3}: N = {}", index, nn);
if nn > 0 {
let mut a = Vector::new(nn + 1);
chebyshev_coefficients(a.as_mut_data(), uu.as_data(), nn);
println!(", an = {}", a[nn]);
} else {
println!();
}
let mut a = Vector::new(nn + 1);
chebyshev_coefficients(a.as_mut_data(), uu.as_data(), nn);
println!(", an = {}", a[nn]);
assert_eq!(nn, degrees_answer[index]);

// plot f(x)
Expand Down

0 comments on commit 8e060b4

Please sign in to comment.