Implement solver for stiff system of differential equations

Assignment Help C/C++ Programming
Reference no: EM13908797

In this problem set, you will implement a solver for the stiff system of differential equations

y' = -Ay,

y(0) = y0,

where A is a symmetric positive definite n x n matrix, y is a function from [0, ∞) to Rn, and y0 is a vector in Rn. You can choose one of the following two algorithms to implement.

Method 1. Solve the differential equation using the backward Euler method. Then, apply one step of Richardson extrapolation.

Method 2. Diagonalize the matrix A. Then, find an explicit formula for the solution. In C, your calling sequence should be void stiff_solve(double* a, int n, double* y0, double t, int m, double* y) Input arguments:

a - The n x n symmetric positive definite matrix of doubles A

n - The dimension n of the matrix A

y0 - An array of doubles of length n containing the initial value yo

t - The final time t

m - The number of steps used in backward Euler (the step size should be t/m). This argument should be ignored if you are using method 2.

Output arguments:

y - An array of doubles of length n containing the solution y(t) at time t

Attachment:- Assignment.rar

Reference no: EM13908797

Questions Cloud

Bonds would eliminate interest-rate risk of equity holders : As a newly hired CEO of the People Trust Co., the first you do is to study the firm’s balance sheet. You find that your firm has $100 million in three-year loans (total assets), $70 million in one-year deposits (total liabilities) and $30 million in ..
After evaluating null company manufacturing process : After evaluating Null Company's manufacturing process, management decides to establish standards of 3 hours of direct labor per unit of product and $ 15 per hour for the labor rate.
Issuing new common stock to raise investment funds : Issuing new common stock to raise investment funds is more expensive than using retained earnings as the funding source
Dividends are expected to grow at a constant rate : The Jackson–Timberlake Wardrobe Co. just paid a dividend of $1.20 per share on its stock. The dividends are expected to grow at a constant rate of 4 percent per year indefinitely. Investors require a return of 10 percent on the company's stock. What ..
Implement solver for stiff system of differential equations : Implement a solver for the stiff system of differential equations - Array of doubles of length n containing the initial value.
State of nature probability return : State of Nature Probability Return on A Return on B I 0.4 6% 11% II 0.2 9% 6% III 0.4 12% 15% The correlation between A and B is 0.35. The portfolio weight of A is 25%. The portfolio weight of B is 75%. 22.value: The expected return in percent for in..
Draw rate of product formation graph using acid phosphatase : In an acid phosphatase you have determined Ki to be 10.5 mu M for NaF, a non-competitive inhibitor. How much sodium fluoride is required to bring 65% inhibition of the Vmax?
What will be the level of accounts receivable : Harrelson Inc currently has $750,000 in accounts receivable and it's days sales outstanding (DSO) is 55 days. It wants to reduce its DSO to 35 days by pressuring more of its customers to pay their bills on time. If this policy is adopted the company'..
Sedona company set the following standard costs : Sedona Company set the following standard costs for one unit of its product for 2013.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd