From: Michael Orlitzky Date: Tue, 18 Dec 2012 03:26:40 +0000 (-0500) Subject: Use the analytic solution Y(x) to compute y1 in problem6_method. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=33e4dd7a64f35fb22774d59af11f5670ab566fbc;p=octave.git Use the analytic solution Y(x) to compute y1 in problem6_method. Fix a bug (bad fraction) in problem6_method1. Remove the partition_delta function; it's stupid in light of [a : delta : b]. --- diff --git a/partition.m b/partition.m index 6568be3..a084236 100644 --- a/partition.m +++ b/partition.m @@ -24,5 +24,5 @@ function [p,delta] = partition(integerN, a, b) ## towards `b`. delta = (b - a)/integerN; - p = partition_delta(a,b,delta); + p = [a : delta : b]; end diff --git a/partition_delta.m b/partition_delta.m deleted file mode 100644 index febb4dc..0000000 --- a/partition_delta.m +++ /dev/null @@ -1,19 +0,0 @@ -function [p] = partition_delta(a, b, delta) - ## Partition the interval [a,b] into subintervals of length delta. We - ## do not require that a