SlideShare a Scribd company logo
using MATLAB:
please write down the code to compute these functions (they are very simple,i'm just not
familiar with coding) 3. Compute each of the following: x-20 x d sinx C. e. t. J (so compute the
V1+x'dx (Also compute the numerical value)
Solution
a. syms x
limit(1/x, x, 0, 'right')
b. syms x
limit(1/x, x, 0, 'left')
c. syms x
f(x) = (sin(x)/x);
df = diff(f,x)
d. fun = @(x) exp(-2.*x). * sin(x);
q = integral (fun,0,inf)
e. fun = @(x) exp(-x.^2);
q = integral(fun,-Inf,Inf)
f. fun = @(x) ((1.+x.^4).^0.5)
q = integral (fun,0,1)

More Related Content

More from marketing413921

Which of the following was NOT a goal of Titchener’s psychologyA..pdf
Which of the following was NOT a goal of Titchener’s psychologyA..pdfWhich of the following was NOT a goal of Titchener’s psychologyA..pdf
Which of the following was NOT a goal of Titchener’s psychologyA..pdf
marketing413921
 
You discover a new kind of fungus with large, square-shaped spores. .pdf
You discover a new kind of fungus with large, square-shaped spores. .pdfYou discover a new kind of fungus with large, square-shaped spores. .pdf
You discover a new kind of fungus with large, square-shaped spores. .pdf
marketing413921
 
Write 1-2 pages of the definitions of the followings (Use APA forma.pdf
Write 1-2 pages of the definitions of the followings (Use APA forma.pdfWrite 1-2 pages of the definitions of the followings (Use APA forma.pdf
Write 1-2 pages of the definitions of the followings (Use APA forma.pdf
marketing413921
 
Which cell type does not move materials Which of the following cell .pdf
Which cell type does not move materials  Which of the following cell .pdfWhich cell type does not move materials  Which of the following cell .pdf
Which cell type does not move materials Which of the following cell .pdf
marketing413921
 
What is the practical relevanceirrelevance of different digital med.pdf
What is the practical relevanceirrelevance of different digital med.pdfWhat is the practical relevanceirrelevance of different digital med.pdf
What is the practical relevanceirrelevance of different digital med.pdf
marketing413921
 
What are the main duties of the Canadian Engineering Accreditation B.pdf
What are the main duties of the Canadian Engineering Accreditation B.pdfWhat are the main duties of the Canadian Engineering Accreditation B.pdf
What are the main duties of the Canadian Engineering Accreditation B.pdf
marketing413921
 
A supererogatory action is one in which a person must engage. T or F.pdf
A supererogatory action is one in which a person must engage. T or F.pdfA supererogatory action is one in which a person must engage. T or F.pdf
A supererogatory action is one in which a person must engage. T or F.pdf
marketing413921
 
The purpose of specialized lacunae are to provide structure to th.pdf
The purpose of specialized lacunae are to  provide structure to th.pdfThe purpose of specialized lacunae are to  provide structure to th.pdf
The purpose of specialized lacunae are to provide structure to th.pdf
marketing413921
 
The following code is an implementation of the producer consumer pro.pdf
The following code is an implementation of the producer consumer pro.pdfThe following code is an implementation of the producer consumer pro.pdf
The following code is an implementation of the producer consumer pro.pdf
marketing413921
 
Prerequisites — Classes or Knowledge Required for this Course.pdf
Prerequisites — Classes or Knowledge Required for this Course.pdfPrerequisites — Classes or Knowledge Required for this Course.pdf
Prerequisites — Classes or Knowledge Required for this Course.pdf
marketing413921
 
Please dont answer if you cannot complete all the requirements. Th.pdf
Please dont answer if you cannot complete all the requirements. Th.pdfPlease dont answer if you cannot complete all the requirements. Th.pdf
Please dont answer if you cannot complete all the requirements. Th.pdf
marketing413921
 
Part 1 Select a controversial current topic and describe the litera.pdf
Part 1 Select a controversial current topic and describe the litera.pdfPart 1 Select a controversial current topic and describe the litera.pdf
Part 1 Select a controversial current topic and describe the litera.pdf
marketing413921
 
Not yet answered Marked out of 1.00 Flag question Which of the follo.pdf
Not yet answered Marked out of 1.00 Flag question  Which of the follo.pdfNot yet answered Marked out of 1.00 Flag question  Which of the follo.pdf
Not yet answered Marked out of 1.00 Flag question Which of the follo.pdf
marketing413921
 
Need help for this essay. Questions 1–4 Answer the following essay .pdf
Need help for this essay. Questions 1–4 Answer the following essay .pdfNeed help for this essay. Questions 1–4 Answer the following essay .pdf
Need help for this essay. Questions 1–4 Answer the following essay .pdf
marketing413921
 
Military time and Standard time, JavaOne of the assignments given .pdf
Military time and Standard time, JavaOne of the assignments given .pdfMilitary time and Standard time, JavaOne of the assignments given .pdf
Military time and Standard time, JavaOne of the assignments given .pdf
marketing413921
 
Local government expenditure is dominated bySolutionThe expen.pdf
Local government expenditure is dominated bySolutionThe expen.pdfLocal government expenditure is dominated bySolutionThe expen.pdf
Local government expenditure is dominated bySolutionThe expen.pdf
marketing413921
 
Instructions Use the Java API (htt docs.oracle.comjavase8docslapil.pdf
Instructions Use the Java API (htt docs.oracle.comjavase8docslapil.pdfInstructions Use the Java API (htt docs.oracle.comjavase8docslapil.pdf
Instructions Use the Java API (htt docs.oracle.comjavase8docslapil.pdf
marketing413921
 
In the subject of cryptographySuppose a system uses a Public-Key I.pdf
In the subject of cryptographySuppose a system uses a Public-Key I.pdfIn the subject of cryptographySuppose a system uses a Public-Key I.pdf
In the subject of cryptographySuppose a system uses a Public-Key I.pdf
marketing413921
 
Identify a critical business requirement for a small healthcare prov.pdf
Identify a critical business requirement for a small healthcare prov.pdfIdentify a critical business requirement for a small healthcare prov.pdf
Identify a critical business requirement for a small healthcare prov.pdf
marketing413921
 
13-20 Recording Revenue and Related Expense Transactions. The Shanno.pdf
13-20 Recording Revenue and Related Expense Transactions. The Shanno.pdf13-20 Recording Revenue and Related Expense Transactions. The Shanno.pdf
13-20 Recording Revenue and Related Expense Transactions. The Shanno.pdf
marketing413921
 

More from marketing413921 (20)

Which of the following was NOT a goal of Titchener’s psychologyA..pdf
Which of the following was NOT a goal of Titchener’s psychologyA..pdfWhich of the following was NOT a goal of Titchener’s psychologyA..pdf
Which of the following was NOT a goal of Titchener’s psychologyA..pdf
 
You discover a new kind of fungus with large, square-shaped spores. .pdf
You discover a new kind of fungus with large, square-shaped spores. .pdfYou discover a new kind of fungus with large, square-shaped spores. .pdf
You discover a new kind of fungus with large, square-shaped spores. .pdf
 
Write 1-2 pages of the definitions of the followings (Use APA forma.pdf
Write 1-2 pages of the definitions of the followings (Use APA forma.pdfWrite 1-2 pages of the definitions of the followings (Use APA forma.pdf
Write 1-2 pages of the definitions of the followings (Use APA forma.pdf
 
Which cell type does not move materials Which of the following cell .pdf
Which cell type does not move materials  Which of the following cell .pdfWhich cell type does not move materials  Which of the following cell .pdf
Which cell type does not move materials Which of the following cell .pdf
 
What is the practical relevanceirrelevance of different digital med.pdf
What is the practical relevanceirrelevance of different digital med.pdfWhat is the practical relevanceirrelevance of different digital med.pdf
What is the practical relevanceirrelevance of different digital med.pdf
 
What are the main duties of the Canadian Engineering Accreditation B.pdf
What are the main duties of the Canadian Engineering Accreditation B.pdfWhat are the main duties of the Canadian Engineering Accreditation B.pdf
What are the main duties of the Canadian Engineering Accreditation B.pdf
 
A supererogatory action is one in which a person must engage. T or F.pdf
A supererogatory action is one in which a person must engage. T or F.pdfA supererogatory action is one in which a person must engage. T or F.pdf
A supererogatory action is one in which a person must engage. T or F.pdf
 
The purpose of specialized lacunae are to provide structure to th.pdf
The purpose of specialized lacunae are to  provide structure to th.pdfThe purpose of specialized lacunae are to  provide structure to th.pdf
The purpose of specialized lacunae are to provide structure to th.pdf
 
The following code is an implementation of the producer consumer pro.pdf
The following code is an implementation of the producer consumer pro.pdfThe following code is an implementation of the producer consumer pro.pdf
The following code is an implementation of the producer consumer pro.pdf
 
Prerequisites — Classes or Knowledge Required for this Course.pdf
Prerequisites — Classes or Knowledge Required for this Course.pdfPrerequisites — Classes or Knowledge Required for this Course.pdf
Prerequisites — Classes or Knowledge Required for this Course.pdf
 
Please dont answer if you cannot complete all the requirements. Th.pdf
Please dont answer if you cannot complete all the requirements. Th.pdfPlease dont answer if you cannot complete all the requirements. Th.pdf
Please dont answer if you cannot complete all the requirements. Th.pdf
 
Part 1 Select a controversial current topic and describe the litera.pdf
Part 1 Select a controversial current topic and describe the litera.pdfPart 1 Select a controversial current topic and describe the litera.pdf
Part 1 Select a controversial current topic and describe the litera.pdf
 
Not yet answered Marked out of 1.00 Flag question Which of the follo.pdf
Not yet answered Marked out of 1.00 Flag question  Which of the follo.pdfNot yet answered Marked out of 1.00 Flag question  Which of the follo.pdf
Not yet answered Marked out of 1.00 Flag question Which of the follo.pdf
 
Need help for this essay. Questions 1–4 Answer the following essay .pdf
Need help for this essay. Questions 1–4 Answer the following essay .pdfNeed help for this essay. Questions 1–4 Answer the following essay .pdf
Need help for this essay. Questions 1–4 Answer the following essay .pdf
 
Military time and Standard time, JavaOne of the assignments given .pdf
Military time and Standard time, JavaOne of the assignments given .pdfMilitary time and Standard time, JavaOne of the assignments given .pdf
Military time and Standard time, JavaOne of the assignments given .pdf
 
Local government expenditure is dominated bySolutionThe expen.pdf
Local government expenditure is dominated bySolutionThe expen.pdfLocal government expenditure is dominated bySolutionThe expen.pdf
Local government expenditure is dominated bySolutionThe expen.pdf
 
Instructions Use the Java API (htt docs.oracle.comjavase8docslapil.pdf
Instructions Use the Java API (htt docs.oracle.comjavase8docslapil.pdfInstructions Use the Java API (htt docs.oracle.comjavase8docslapil.pdf
Instructions Use the Java API (htt docs.oracle.comjavase8docslapil.pdf
 
In the subject of cryptographySuppose a system uses a Public-Key I.pdf
In the subject of cryptographySuppose a system uses a Public-Key I.pdfIn the subject of cryptographySuppose a system uses a Public-Key I.pdf
In the subject of cryptographySuppose a system uses a Public-Key I.pdf
 
Identify a critical business requirement for a small healthcare prov.pdf
Identify a critical business requirement for a small healthcare prov.pdfIdentify a critical business requirement for a small healthcare prov.pdf
Identify a critical business requirement for a small healthcare prov.pdf
 
13-20 Recording Revenue and Related Expense Transactions. The Shanno.pdf
13-20 Recording Revenue and Related Expense Transactions. The Shanno.pdf13-20 Recording Revenue and Related Expense Transactions. The Shanno.pdf
13-20 Recording Revenue and Related Expense Transactions. The Shanno.pdf
 

Recently uploaded

Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 

Recently uploaded (20)

Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 

using MATLABplease write down the code to compute these functions.pdf

  • 1. using MATLAB: please write down the code to compute these functions (they are very simple,i'm just not familiar with coding) 3. Compute each of the following: x-20 x d sinx C. e. t. J (so compute the V1+x'dx (Also compute the numerical value) Solution a. syms x limit(1/x, x, 0, 'right') b. syms x limit(1/x, x, 0, 'left') c. syms x f(x) = (sin(x)/x); df = diff(f,x) d. fun = @(x) exp(-2.*x). * sin(x); q = integral (fun,0,inf) e. fun = @(x) exp(-x.^2); q = integral(fun,-Inf,Inf) f. fun = @(x) ((1.+x.^4).^0.5) q = integral (fun,0,1)