SlideShare una empresa de Scribd logo
1 de 1
Descargar para leer sin conexión
MATLAB Drive > graphfun.m 1 function graphfun(hfun, interval) 2N=100; 3 a=interval (1); 4
b=interval (2); 5 x = linspace (a,b,N); 6 y hfun (x); 7 plot (x,y, 'b-', [a b ],[0],r); 8 grid on; 9 end1.
Find the five roots of the equation x51.13x46.28x3+4.66x2+6.05x0.85=0 using local function
root=myroot ( fun, interval, tolerance) that calculates a single root within the given interval, for
example [a, b], and given tolerance using bisection method. All roots are located inside the interval
[3,3], but you may have to find the bracketing interval for each root using graphfun() function. After
you determine the five intervals, write the scripts that calculates and displays all five roots with
tolerance =0.001.

Más contenido relacionado

Más de adityaenterprisesvjw

Medro amp Mariana serve one kind of sandwich one kind of .pdf
Medro amp Mariana serve one kind of sandwich one kind of .pdfMedro amp Mariana serve one kind of sandwich one kind of .pdf
Medro amp Mariana serve one kind of sandwich one kind of .pdf
adityaenterprisesvjw
 

Más de adityaenterprisesvjw (20)

Melissa Woods was recently hired as a campaign manager at an.pdf
Melissa Woods was recently hired as a campaign manager at an.pdfMelissa Woods was recently hired as a campaign manager at an.pdf
Melissa Woods was recently hired as a campaign manager at an.pdf
 
Medro amp Mariana serve one kind of sandwich one kind of .pdf
Medro amp Mariana serve one kind of sandwich one kind of .pdfMedro amp Mariana serve one kind of sandwich one kind of .pdf
Medro amp Mariana serve one kind of sandwich one kind of .pdf
 
Mendelian Genetics What is the main idea of Mendelian geneti.pdf
Mendelian Genetics What is the main idea of Mendelian geneti.pdfMendelian Genetics What is the main idea of Mendelian geneti.pdf
Mendelian Genetics What is the main idea of Mendelian geneti.pdf
 
Membrane structure and Transport 2 Describe the structure o.pdf
Membrane structure and Transport 2 Describe the structure o.pdfMembrane structure and Transport 2 Describe the structure o.pdf
Membrane structure and Transport 2 Describe the structure o.pdf
 
Members of each group are required to visit the main offices.pdf
Members of each group are required to visit the main offices.pdfMembers of each group are required to visit the main offices.pdf
Members of each group are required to visit the main offices.pdf
 
Members of the Thaumarchaeota are abundant in the ocean wher.pdf
Members of the Thaumarchaeota are abundant in the ocean wher.pdfMembers of the Thaumarchaeota are abundant in the ocean wher.pdf
Members of the Thaumarchaeota are abundant in the ocean wher.pdf
 
Members of some races are on average more likely to be vacci.pdf
Members of some races are on average more likely to be vacci.pdfMembers of some races are on average more likely to be vacci.pdf
Members of some races are on average more likely to be vacci.pdf
 
Media Assessment Part 3 Business Plan With the creation o.pdf
Media Assessment Part 3  Business Plan With the creation o.pdfMedia Assessment Part 3  Business Plan With the creation o.pdf
Media Assessment Part 3 Business Plan With the creation o.pdf
 
Media Assessment Part 2 Analysis Analyse and explain the m.pdf
Media Assessment Part 2  Analysis Analyse and explain the m.pdfMedia Assessment Part 2  Analysis Analyse and explain the m.pdf
Media Assessment Part 2 Analysis Analyse and explain the m.pdf
 
Matching 1 pt ea 1 M leprae A prefers pH20 2 Clostrid.pdf
Matching 1 pt ea 1 M leprae A prefers pH20 2 Clostrid.pdfMatching 1 pt ea 1 M leprae A prefers pH20 2 Clostrid.pdf
Matching 1 pt ea 1 M leprae A prefers pH20 2 Clostrid.pdf
 
Maylair Compsny compleked the following transactions and use.pdf
Maylair Compsny compleked the following transactions and use.pdfMaylair Compsny compleked the following transactions and use.pdf
Maylair Compsny compleked the following transactions and use.pdf
 
MCdk se activa repentinamente al final de G2 por destrucci.pdf
MCdk se activa repentinamente al final de G2 por  destrucci.pdfMCdk se activa repentinamente al final de G2 por  destrucci.pdf
MCdk se activa repentinamente al final de G2 por destrucci.pdf
 
Mayoz ve mitoz ile ilgili aadaki ifadelerden hangisi dorudur.pdf
Mayoz ve mitoz ile ilgili aadaki ifadelerden hangisi dorudur.pdfMayoz ve mitoz ile ilgili aadaki ifadelerden hangisi dorudur.pdf
Mayoz ve mitoz ile ilgili aadaki ifadelerden hangisi dorudur.pdf
 
May Stewart CFA analista minorista est realizando una co.pdf
May Stewart CFA analista minorista est realizando una co.pdfMay Stewart CFA analista minorista est realizando una co.pdf
May Stewart CFA analista minorista est realizando una co.pdf
 
Max Stamp approves study abroad documents for the university.pdf
Max Stamp approves study abroad documents for the university.pdfMax Stamp approves study abroad documents for the university.pdf
Max Stamp approves study abroad documents for the university.pdf
 
Matrix Incorporated acquired 25 of Neo Enterprises for 2.pdf
Matrix Incorporated acquired 25 of Neo Enterprises for 2.pdfMatrix Incorporated acquired 25 of Neo Enterprises for 2.pdf
Matrix Incorporated acquired 25 of Neo Enterprises for 2.pdf
 
Marketing Segment for a Daycare in a university for staff an.pdf
Marketing Segment for a Daycare in a university for staff an.pdfMarketing Segment for a Daycare in a university for staff an.pdf
Marketing Segment for a Daycare in a university for staff an.pdf
 
Matching Match the medication in the first column with the .pdf
Matching Match the medication in the first column with the .pdfMatching Match the medication in the first column with the .pdf
Matching Match the medication in the first column with the .pdf
 
Match word parts in the left column with their meanings in t.pdf
Match word parts in the left column with their meanings in t.pdfMatch word parts in the left column with their meanings in t.pdf
Match word parts in the left column with their meanings in t.pdf
 
Match the word to its definition Lithification Choose .pdf
Match the word to its definition Lithification  Choose  .pdfMatch the word to its definition Lithification  Choose  .pdf
Match the word to its definition Lithification Choose .pdf
 

Último

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 

Último (20)

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 

MATLAB Drive gt graphfunm 1 function graphfunhfun inter.pdf

  • 1. MATLAB Drive > graphfun.m 1 function graphfun(hfun, interval) 2N=100; 3 a=interval (1); 4 b=interval (2); 5 x = linspace (a,b,N); 6 y hfun (x); 7 plot (x,y, 'b-', [a b ],[0],r); 8 grid on; 9 end1. Find the five roots of the equation x51.13x46.28x3+4.66x2+6.05x0.85=0 using local function root=myroot ( fun, interval, tolerance) that calculates a single root within the given interval, for example [a, b], and given tolerance using bisection method. All roots are located inside the interval [3,3], but you may have to find the bracketing interval for each root using graphfun() function. After you determine the five intervals, write the scripts that calculates and displays all five roots with tolerance =0.001.