

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
It is on Fracture mechanics homework
Typology: Cheat Sheet
1 / 2
This page cannot be seen from the preview
Don't miss anything!
%%newton raphson method clc; %clear command window clear all; %clear all existing variables close all; %close all open figures h = 10; a = 1; n = 1; diff = 1; while (diff > 0.001) F = 91 - 40sqrt(pia)(1.1216+6.5200(a/h)^2-12.3877(a/h)^4+89.0554(a/h)^6-188.6080* (a/h)^8+207.3870(a/h)^10-32.0524(a/h)^12); F_prime = -40sqrt(pi)(1.12160.5a^-0.5+6.52002.5(a^1.5)/(h^2)-12.38774.5(a^3.5)/ (h^4)+89.05546.5(a^5.5)/(h^6)-188.60808.5(a^7.5)/(h^8)+207.387010.5(a^9.5)/(h^10) -32.052412.5(a^11.5)/(h^12)); anew = a - F/F_prime; diff = abs(anew - a)/a; a = anew; n = n + 1; end %n = 3 %a = 1. %% clc; %clear command window clear all; %clear all existing variables close all; %close all open figures a = 0.1; b = 1.13658; alpha = 2.6; h = 10; c = 1.6*10^-9; sigma = 40; xi1 = 0.0000000000000000; xi2 = -0.2011940939974345; xi3 = 0.2011940939974345; xi4 = -0.3941513470775634; xi5 = 0.3941513470775634; xi6 = -0.5709721726085388; xi7 = 0.5709721726085388; xi8 = -0.7244177313601701; xi9 = 0.7244177313601701;
xi10 = -0.8482065834104272; xi11 = 0.8482065834104272; xi12 = -0.9372733924007060; xi13 = 0.9372733924007060; xi14 = -0.9879925180204854; xi15 = 0.9879925180204854; xi = [xi1 xi2 xi3 xi4 xi5 xi6 xi7 xi8 xi9 xi10 xi11 xi12 xi13 xi14 xi15]; w1 = 0.2025782419255613; w2 = 0.1984314853271116; w3 = 0.1984314853271116; w4 = 0.1861610000155622; w5 = 0.1861610000155622; w6 = 0.1662692058169939; w7 = 0.1662692058169939; w8 = 0.1395706779261543; w9 = 0.1395706779261543; w10 = 0.1071592204671719; w11 = 0.1071592204671719; w12 = 0.0703660474881081; w13 = 0.0703660474881081; w14 = 0.0307532419961173; w15 = 0.0307532419961173; w = [w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15]; for i = 1: x(i) = (b-a)/2xi(i)+(b+a)/2; end for i=1: int(i) = w(i)1/(sqrt(x(i))(1.1216+6.5200(x(i)/h)^2-12.3877(x(i)/h)^4+89.0554(x (i)/h)^6-188.6080(x(i)/h)^8+207.3870(x(i)/h)^10-32.0524(x(i)/h)^12))^alpha; end; format long Nf = 1/(c(sigmasqrt(pi))^alpha)(b-a)/2sum(int) %actual answer 27382.32 from wolframalpha %matlab 2.7381410^