Fix return value name in forward_euler.m.
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 6 Feb 2013 18:44:59 +0000 (13:44 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 6 Feb 2013 18:44:59 +0000 (13:44 -0500)
forward_euler.m

index 7d7e12de4b8aeb06b29e0f48b236103ff91c50b6..ff9c5eb2a498bc2be65d366fa9ba497d568354b7 100644 (file)
@@ -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