Question

On a computer using double precision arithmetic, the value r = sqrt(x) is calculated, where x...

On a computer using double precision arithmetic, the value r = sqrt(x) is calculated, where x has the value 360,007. A sensible estimate of the absolute error in r is?

Homework Answers

Answer #1

estimated values:-

here first, let us write a c equivalent code for calculating double precision arithmetic value of sqrt(360007).

the ouptut for this could be,

actual values:-

finally the absolute error:-

absolute error=actual output-estimated output

Δr=R(a)-R(e)

=600.0058333049772-600.005833

=0.000000305//

so,the absolute error is 0.000000305

thank you!!

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Using MATLAB, Obtain the plot of z = sinr where r = sqrt (x2 +y2) over...
Using MATLAB, Obtain the plot of z = sinr where r = sqrt (x2 +y2) over the domain (−20<x,y<20). In order to define your domain, you may start with xd=-20:40/99:20; yd = xd; [x,y] = meshgrid(xd,yd);. Then you might first compute r= sqrt(x.^2+y.^2); z= sin(r)./r;. Following this, issue the command plot3(x,y,z,’k’) to get the 3-D plot of this surface. Here ’k’ makes it black. Next instead of plot3(x,y,z,’k’) you can try mesh(x,y,z); colormap([1,0,0]) to get a red mesh plot. You...
Find the average value of the following function where 2≤x≤5 f(x)= sqrt(x^2-4)/x dx
Find the average value of the following function where 2≤x≤5 f(x)= sqrt(x^2-4)/x dx
Write procedures using c++ for converting between rectangular and polar coordinates named xy2polar and polar2xy. Invoking...
Write procedures using c++ for converting between rectangular and polar coordinates named xy2polar and polar2xy. Invoking xy2polar(x,y,r,t) should take the rectangular coordinates (x,y) and save the resulting polar coordinates; (r,theta) are r and t, respectively. The procedure polar2xy(r,t,x,y) should have the reverse effect. Be sure to handle the origin in a sensible manner. It is useful to explore the following C++ procedures, which are housed in the cmath header file: Variants of the absolute value function int abs(int x) long...
2. Evaluate the double integral Z Z R e ^(x^ 2+y ^2) dA where R is...
2. Evaluate the double integral Z Z R e ^(x^ 2+y ^2) dA where R is the semicircular region bounded by x ≥ 0 and x^2 + y^2 ≤ 4. 3. Find the volume of the region that is bounded above by the sphere x^2 + y^2 + z^2 = 2 and below by the paraboloid z = x^2 + y^2 . 4. Evaluate the integral Z Z R (12x^ 2 )(y^3) dA, where R is the triangle with vertices...
Use the given transformation to evaluate the double integral of (x-6y) dA, where R is the...
Use the given transformation to evaluate the double integral of (x-6y) dA, where R is the triangular region with vertices (0, 0), (5, 1), and (1, 5). x = 5u + v, y = u + 5v
1. Write an R function named “abs.shift” to calculate the function value |x|-1 of a real...
1. Write an R function named “abs.shift” to calculate the function value |x|-1 of a real number x, where |x| is the absolute value of x. Do not use the abs() function. 2. Which of the following method is for simulating discrete random variables? A) The Rejection method with uniform envelope. B) The Inverse CDF method. C) The rnorm() function. D) The sample() function in R.
using the change of variable x =u/v, y=v evaluate "double integral(x^2+2y^2)dxdy: R is the region in...
using the change of variable x =u/v, y=v evaluate "double integral(x^2+2y^2)dxdy: R is the region in the first quadrant bounded by the graphs of xy=1, xy=2, y=x, y=2x
The equilibrium constant, Kc, is calculated using molar concentrations. For gaseous reactions another form of the...
The equilibrium constant, Kc, is calculated using molar concentrations. For gaseous reactions another form of the equilibrium constant, Kp, is calculated from partial pressures instead of concentrations. These two equilibrium constants are related by the equation Kp=Kc(RT)Δn where R=0.08206 L⋅atm/(K⋅mol), T is the absolute temperature, and Δn is the change in the number of moles of gas (sum moles products - sum moles reactants). For example, consider the reaction N2(g)+3H2(g)⇌2NH3(g) for which Δn=2−(1+3)=−2. For the reaction 2A(g)+2B(g)⇌C(g) Kc = 71.6...
The equilibrium constant, Kc, is calculated using molar concentrations. For gaseous reactions another form of the...
The equilibrium constant, Kc, is calculated using molar concentrations. For gaseous reactions another form of the equilibrium constant, Kp, is calculated from partial pressures instead of concentrations. These two equilibrium constants are related by the equation Kp=Kc(RT)Δn where R=0.08206 L⋅atm/(K⋅mol), T is the absolute temperature, and Δn is the change in the number of moles of gas (sum moles products - sum moles reactants). For example, consider the reaction N2(g)+3H2(g)⇌2NH3(g) for which Δn=2−(1+3)=−2. A) For the reaction 3A(g)+2B(g)⇌C(g) Kc =...
a)Program a calculator or computer to use Euler's method to compute y(1), where y(x) is the...
a)Program a calculator or computer to use Euler's method to compute y(1), where y(x) is the solution of the given initial-value problem. (Give all answers to four decimal places.) dy dx + 3x2y = 9x2, y(0) = 4 h = 1     y(1) = h = 0.1     y(1) = h = 0.01     y(1) = h = 0.001     y(1) = (b) Verify that y = 3 + e−x3 is the exact solution of the differential equation. y = 3 + e−x3      ⇒     y'...