diff --git a/README.md b/README.md index a1ce297..ac9f4e3 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,9 @@ cat_cable = @(T) -35+T/10.*cosh(10./T*30)+30-T/10; ```matlab -| solver | initial guess(es) | ea | number of iterations| +| solver | initial guess | ea | number of iterations| | --- | --- | --- | --- | -|falsepos | 900, 910 | 0.00001| 4 | +|falsepos | 900, 910 | 0.00001| 4 | |mod_secant | 900, 910 | 0.00001| 50 | |bisect | 900, 910 | 0.00001| 17 | ``` diff --git a/plot_cat.m b/plot_cat.m new file mode 100644 index 0000000..2c9aa29 --- /dev/null +++ b/plot_cat.m @@ -0,0 +1,5 @@ +cat_cable = @(x) -35+908.2131/10.*cosh(10./908.2131*x)+30-908.2131/10; +x= -10:50; +plot(x,cat_cable(x)) +f = figure(1); +saveas(f,'problem1c.png'); \ No newline at end of file diff --git a/problem1c.png b/problem1c.png new file mode 100644 index 0000000..5eb0d48 Binary files /dev/null and b/problem1c.png differ