From 6cfd66f3e55b871efbaa215006a556d9912dc925 Mon Sep 17 00:00:00 2001 From: Terrell Date: Tue, 3 Oct 2017 11:12:20 -0400 Subject: [PATCH] readme --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 713aee4..c69a7b1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,27 @@ # 02_roots_and_optimization ME3255 HW2 + + +#Problem 2 + +```MatLab + +cat_cable = @(T) T/10.*cosh(10./T*30)+30-T/10-35; +[root,fx,ea,iter] = falsepos(cat_cable,100,1000,0.00001,10000); +[root1,fx1,ea1,iter1] = bisect(cat_cable,100,1000,0.00001,10000); +[root2,ea2,iter2] = mod_secant(cat_cable,100,1000,0.00001,10000); + +%define T +T = root2; + +%plotting the shape of the powerline +x = -10:0.1:50; +y = T/10.*cosh(10./T*x)+30-T/10; +%setDefaults +plot(x,y) +title('Final Powerline Shape') +xlabel('distance (m)') +ylabel('height (m)') +print('figure01','-dpng') + +```