From 40360c3fb0d2c58cd2adc805e2d9152adf4b7e8a Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 28 Jul 2024 00:38:46 +0300 Subject: [PATCH] run `v fmt -w deriv/deriv.v` --- deriv/deriv.v | 2 -- 1 file changed, 2 deletions(-) diff --git a/deriv/deriv.v b/deriv/deriv.v index 41ae63293..eb53c0758 100644 --- a/deriv/deriv.v +++ b/deriv/deriv.v @@ -126,8 +126,6 @@ pub fn backward(f func.Fn, x f64, h f64) (f64, f64) { * @return A tuple containing the value of the partial derivative and the estimated error. */ pub fn partial(f fn ([]f64) f64, x []f64, variable int, h f64) (f64, f64) { - - if variable < 0 || variable >= x.len { errors.vsl_panic('Invalid variable index', .efailed) }