From 33e4dd7a64f35fb22774d59af11f5670ab566fbc Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 17 Dec 2012 22:26:40 -0500 Subject: [PATCH] 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]. --- partition.m | 2 +- partition_delta.m | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 partition_delta.m 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