SlideShare a Scribd company logo
1 of 1
Download to read offline
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
 
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
 
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
 
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
 
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
 
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

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
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.
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
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...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 

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)