Implement a solver for the stiff system

Assignment Help Engineering Mathematics
Reference no: EM131564268

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

y' = -Ay,

y(0) = yo,

where A is a symmetric positive definite n x n matrix, y is a function from [0, ∞) to Rn, and yo 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* yO, 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

Reference no: EM131564268

Questions Cloud

Solve the two-dimensional steady-state heat equation problem : Solve the 2-dimensional steady-state heat equation problem. Solve the 1-dimensional zero ends heat equation problem with c = 1, L = 2, and initial temperature
Describe the business rules that could impact the structure : Describe the business rules that could impact the structure of the database. Describe the entities of the database and the attributes of each entity.
Combine the code of ethics and your career plan : Describes your plan for success in your profession but also details a code of ethics that will govern your career
Maximize the profit for the dvds : MAXIMIZING PROFIT The weekly demand for DVDs manufactured by Herald Media Corporation is given.
Implement a solver for the stiff system : Implement a solver for the stiff system of differential equations - symmetric positive definite matrix of doubles A - Solve the differential equation
Discuss at least three apa concepts presented : After watching the video, APA In-text Citations (6th Edition), discuss at least three APA concepts presented in or that you learned from the video.
What is private-equity investing and how does it make money : Discuss Taiwan's view about China’s currency policy: Do their views differ from the U.S.? Why? What is private-equity investing and how does it make money?
Complete the request for proposal : Submitting a request for proposal (RFP) is usually a requirement for human services administrators who wish to pursue government grants.
Creative brief and project management plan : Creative Brief and Project Management Plan, The first step in completing a successful project is to draft a creative brief and a project management plan

Reviews

Write a Review

Engineering Mathematics Questions & Answers

  Prime number theorem

Dirichlet series

  Proof of bolzano-weierstrass to prove the intermediate value

Every convergent sequence contains either an increasing, or a decreasing subsequence.

  Antisymmetric relations

How many relations on A are both symmetric and antisymmetric?

  Distributed random variables

Daily Airlines fies from Amsterdam to London every day. The price of a ticket for this extremely popular flight route is $75. The aircraft has a passenger capacity of 150.

  Prepare a system of equations

How much money will Dave and Jane raise for charity

  Managing ashland multicomm services

This question is asking you to compare the likelihood of your getting 4 or more subscribers in a sample of 50 when the probability of a subscription has risen from 0.02 to 0.06.]  Talk about the comparison of probabilities in your explanation.

  Skew-symmetric matrices

Skew-symmetric matrices

  Type of taxes and rates in spokane wa

Describe the different type of taxes and their rates in Spokane WA.

  Stratified random sample

Suppose that in the four player game, the person who rolls the smallest number pays $5.00 to the person who rolls the largest number. Calculate each player's expected gain after one round.

  Find the probability density function

Find the probability density function.

  Develop a new linear programming for an aggregate production

Linear programming applied to Aggregate Production Planning of Flat Screen Monitor

  Discrete-time model for an economy

Discrete-time model for an economy

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