Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write in C write in C 5. Write a function to calculate the approximate value of the area between the curve y = x +

write in C

image text in transcribed

write in C

5. Write a function to calculate the approximate value of the area between the curve y = x + (x- 0.2)^2 + (x -0.37)45 and the lines x0 = 0, x1 = 1, y = 0 without doing the integral. Function should take xo and x1 values as input and return the calculated value for area. Submit both main and multiplication function codes. Example output: Enter x0 and x1:01 x = 0.0 y = 0.03 Sum = 0.03 x = 0.1 y = 0.11 Sum = 0.14 x = 0.2 y = 0.20 Sum = 0.34 x = 0.3 y = 0.31 Sum = 0.65 x = 0.4 y = 0.44 Sum = 1.09 x = 0.5 y = 0.59 Sum = 1.68 x = 0.6 y = 0.76 Sum = 2.44 x = 0.7 y = 0.95 Sum = 3.40 x = 0.8 y = 1.17 Sum = 4.57 x = 0.9 y = 1.43 Sum = 6.00 y = x + ( x -0.2)^2 + (x -0.37)^5 in x0 = 0.0 and x1 = 1.0 is: 6.00

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

Step: 3

blur-text-image

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

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions