diff options
author | Zihan Liu <zl6114@ic.ac.uk> | 2017-03-13 18:01:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-13 18:01:20 +0000 |
commit | 5a50d1d0ca987df654f7a67d6ac72b8077f5acf4 (patch) | |
tree | 20bdc60cc25a6154a1b957a7d23cf9e10c52efd2 | |
parent | 0bff20e57f69fa0c332bfded06720ed775c8fa35 (diff) | |
download | NumericalAnalysis-5a50d1d0ca987df654f7a67d6ac72b8077f5acf4.tar.gz NumericalAnalysis-5a50d1d0ca987df654f7a67d6ac72b8077f5acf4.zip |
fix more error
-rw-r--r-- | Part 1/error_script.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Part 1/error_script.m b/Part 1/error_script.m index 98ca943..97cc501 100644 --- a/Part 1/error_script.m +++ b/Part 1/error_script.m @@ -70,7 +70,7 @@ figure(5); for k = 1:5
[t, iout] = ralston(func, ts, tf, is, h);
- exact = vin(t) - R*i_Exact;
+ exact = vin(t) - R*i_Exact(t);
vout = vin(t) - R*iout;
error = abs(exact - vout);
max_error = max(error);
|