Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmaliniak committed Dec 14, 2017
1 parent a281278 commit 194871b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Part F/Rel_error.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function re = Rel_error (T)
re = zeros(1,length(T)-1);
for i = 2:length(T)
re(i-1)= abs(T(i)-T(i-1))/T(i-1);
end
2 changes: 1 addition & 1 deletion Part F/tension_sol.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function [T,ea] = tension_sol(P,n)
y =@(T) SE_diff(T,P,n);
[T,fx,ea,iter]=bisect(y,.01,1,.1);
[T,fx,ea,iter]=bisect(y,.01,1);

0 comments on commit 194871b

Please sign in to comment.