From: Michael Orlitzky Date: Wed, 6 Feb 2013 18:44:59 +0000 (-0500) Subject: Fix return value name in forward_euler.m. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=26295a1c102d026b8c539d2b2ef35cf6be27272c;p=octave.git Fix return value name in forward_euler.m. --- diff --git a/forward_euler.m b/forward_euler.m index 7d7e12d..ff9c5eb 100644 --- a/forward_euler.m +++ b/forward_euler.m @@ -31,19 +31,19 @@ function coefficients = forward_euler(integer_order, xs, x) if (integer_order < 0) ## You have made a grave mistake. - df = NA; + coefficients = NA; return; end if (integer_order == 0) - df = x; + coefficients = x; return; end if (length(xs) < 2) ## You can't approximate a derivative of order greater than zero ## with zero or one points! - df = NA + coefficients = NA return; end