Answered step by step
Verified Expert Solution
Question
1 Approved Answer
can someone help with this, I am getting stuck with it The goal of this exercise is to determine which variables make what kinds of
can someone help with this, I am getting stuck with it
The goal of this exercise is to determine which variables make what kinds of difference while performing numerical computations: We will consider at least four variables: - number of iterations / size of subintervals (obviously, smaller ones improve the answer, but how many does it take?) - rounding modes: RU, RD, RN, and RZ (does it matter? how much?) - function being integrated (does it matter? how much?) - summation method: left, right, mid, trapezoid (trapezoid looks better but by how much?) Write a program to compute the area under a curve using Riemann sums. Below are some suggestions you should consider: - be general enough to allow experimentation - generate tables so you can see trends - compute absolute and relative errors - compute differences between interesting combinations - use and to see enough digits - include and In order to test rounding modes use 0. Note: rounding mode is a global setting and "slow" to update, so you should perform a complete integration before changing it. Use at least the following functions, but you can create others: - f(x)=7x2 interval [1,2] is 18 - f(x)=3+2xx2, interval [1,3] is 32/3 - f(x)=1x2, interval [0,1] is 4 - f(x)=sinx, interval [0,2] is 1 Step by Step Solution
There are 3 Steps involved in it
Step: 1
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 Started