Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

***please write in JAVASCRIPT /HTML*** (I do not want the answer in java) Take the function f(x) = ln(sin(x)) + 1 and find the integral

***please write in JAVASCRIPT /HTML*** (I do not want the answer in java)

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

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)

n = 10

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions

Question

What kitchen appliance do you use every day?

Answered: 1 week ago

Question

LO10.2 List the conditions required for purely competitive markets.

Answered: 1 week ago