Question
Need help in writing this program in Javascript. Take the function f(x) = ln(sin(x)) + 1 and find the integral from x=0.5 to x=2.5 you
Need help in writing this program in Javascript. Take the function f(x) = ln(sin(x)) + 1 and find the integral from x=0.5 to x=2.5 you will need to define four variables for me to test the program: f(x) a = 0.5 b = 2.5 n = 10 I need four answers: first, the exact answer using calculus [this will not change when I replace your variables.] and three answers using n = 10 equal sized intervals for the function f(x) using: - the trapezoidal method area of segment equals base times the average of the height at the two end points of the segment. h = (b-a)/n A = (f(x)+f(x+h))*(h/2) - Simpson's 1/3 rule area of segment = h = (b-a)/(2*n) A = (f(x)+4*f(x+h)+f(x+h+h))*(h/3) - Simpson's 3/8 rule area of segment = h = (b-a)/(3*n) A = (f(x)+3*f(x+h)+3*f(x+h+h)+f(x+h+h+h))*(3*h/8)
Step by Step Solution
3.32 Rating (161 Votes )
There are 3 Steps involved in it
Step: 1
ANSWER Note If you have any queries related the answer please do comment I would be very ha...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Business Communication Process and Product
Authors: Mary Ellen Guffey
6th Edition
324578679, 9780324578683, 9780324542905, 176721258, 9780324578676, 324542909, 9780176721251, 978-0324542905
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App