1. Homepage
  2. Homework
  3. Computing Methods Homework 4: Polynomial, linear and spline interpolations
This question has been solved

Computing Methods Homework 4: Polynomial, linear and spline interpolations

Engage in a Conversation
ChinaBUCTComputing MethodsCurve Fittingspline interpolations

2023 Summer Computing Methods Homework # 4 (100) CourseNana.COM

Problem #1 ( 25)

The population of the world for selected years from 1750 to 2009 is given in the following table: CourseNana.COM

A. Determine the function that best fits the data. Use the function to estimate the population in 1984. Make a plot of the points and the function. B. Fit the data with a third-order polynomial. Use the polynomial to estimate the population in 1984. Make a plot of the points and the polynomial fitting curve . C. Fit the data with linear and spline interpolations. Estimate the population in 1984 with linear and spline interpolations. Make a plot of the data points and curves made of the interpolated points. CourseNana.COM

In each part make a plot of the data points (circle markers) and the fit curve or the interpolation curves. Note that part c) has two interpolation curves. CourseNana.COM

Problem #2 ( 25)

The standard air density, D (average of measurements made), at different heights, h, from sea level up to a height of 33 km is given below. CourseNana.COM

Make the following four plots of the data points (density as a function of height): CourseNana.COM

  • both axes with linear scale;
  • h with log axis, D with linear axis;
  • h with linear axis, D with log axis;
  • both log axes. According to the plots choose a function (linear, power, exponential, or logarithmic) that best fits the data points and determine the coefficients of the function.

Plot the function and the points using linear axes. CourseNana.COM

Problem #3 ( 25)

Write a user -define d function that fits data points to a power function of the form =𝑏𝑥𝑚 . Name the function [b,m] = powerfit(x,y) , where the input arguments x and y are vectors with the coordinates of the data points, and the output arguments b and m are the constants of the fitted exponential equation. Use powerfit to fit the data below. Make a plot that shows the data points and the function. CourseNana.COM

The following model applies to third -order chemical reactions in batch reactors: CourseNana.COM

𝑐= 𝑐01 √1+2𝑘𝑐02𝑡 CourseNana.COM

where c - concentration (mg/L), c 0 - initial concentration (mg/L), k - reaction rate (L2 /(mg2 d)), and t - time (d). Linearize this model and use it to estimate k and c 0 based on the following data CourseNana.COM

t 0 0.5 1 1.5 2 3 4 5 c 3.26 2.09 1.62 1.48 1.17 1.06 0.9 0.85 CourseNana.COM

Develop plots of your fit along with the data for both the original and the linearized equations. CourseNana.COM

Bonus Problem ( 5)

The relationship between two variables P and t is known to be 𝑃=𝑚𝑡 𝑏+𝑡. The following data points are given CourseNana.COM

Determine the constants m and b by curve-fitting the equation to the data points. Make a plot of P versus t. In the plot show the data points with markers and the curve-fitted equation with a solid line. (The curve fitti ng can be done by writing the reciprocal of the equation and using a first -order polynomial.) CourseNana.COM

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
China代写,BUCT代写,Computing Methods代写,Curve Fitting代写,spline interpolations代写,China代编,BUCT代编,Computing Methods代编,Curve Fitting代编,spline interpolations代编,China代考,BUCT代考,Computing Methods代考,Curve Fitting代考,spline interpolations代考,Chinahelp,BUCThelp,Computing Methodshelp,Curve Fittinghelp,spline interpolationshelp,China作业代写,BUCT作业代写,Computing Methods作业代写,Curve Fitting作业代写,spline interpolations作业代写,China编程代写,BUCT编程代写,Computing Methods编程代写,Curve Fitting编程代写,spline interpolations编程代写,Chinaprogramming help,BUCTprogramming help,Computing Methodsprogramming help,Curve Fittingprogramming help,spline interpolationsprogramming help,Chinaassignment help,BUCTassignment help,Computing Methodsassignment help,Curve Fittingassignment help,spline interpolationsassignment help,Chinasolution,BUCTsolution,Computing Methodssolution,Curve Fittingsolution,spline interpolationssolution,