tweak tester output

This commit is contained in:
Josh Deprez 2021-10-03 15:54:47 +11:00
parent 07d3619a42
commit 61a8295962

View file

@ -31,7 +31,7 @@ func main() {
log.Fatalf("cubic.Prepare() = %v, want nil", err) log.Fatalf("cubic.Prepare() = %v, want nil", err)
} }
// Produce interpolated points in CSV-like form. // Produce interpolated points in CSV-like form.
for x := -8.0; x < 8.0; x += 0.1 { for x := -8.0; x < 8.0; x += 0.125 {
fmt.Printf("%f,%f,%f\n", x, linear.Interpolate(x), cubic.Interpolate(x)) fmt.Printf("%f,%f,%f\n", x, linear.Interpolate(x), cubic.Interpolate(x))
} }
} }