Homework

Homework Questions? Ask a Tutor for Answers ASAP

Connect one-on-one with {0} who will answer your question

Hi Dr. Arthur, I have the...

Hi Dr. Arthur,

I have the following code in Matlab for the exponential time differencing extrapolation scheme. But, I couldn't able to finish it correctly. It needs to write same as in the file attached. Please help this to write in Matlab.

%% Given Information required for the for loop below:f= @(v)(v.*(1-v));

A3 = kappa * full(gallery('tridiag', N-2, 1, -2, 1)) / dx^(2);

I = eye(N-2);

B = (I - dt*A3) ;

B1 = I - 0.5*dt*A3; B2 = I - 2*dt*A3; B3 = I - 2*dt*A3 + (dt^2)*(A3^2);

C = I + 0.5*dt*A3;

u = zeros(N,1);

u(2:N-1) = 1;

ub = u; uc = u; uETDexp = u;for j=2:2:M

exp1 = uETDexp;

exp2 = uETDexp;

exp1(2:N-1) = B2\exp1(2:N-1);

exp2(2:N-1) = B3\exp2(2:N-1);

uETDexp = 2*exp2 - exp1;

end

I have the following code in Matlab for the exponential time differencing extrapolation scheme. But, I couldn't able to finish it correctly. It needs to write same as in the file attached. Please help this to write in Matlab.

%% Given Information required for the for loop below:f= @(v)(v.*(1-v));

A3 = kappa * full(gallery('tridiag', N-2, 1, -2, 1)) / dx^(2);

I = eye(N-2);

B = (I - dt*A3) ;

B1 = I - 0.5*dt*A3; B2 = I - 2*dt*A3; B3 = I - 2*dt*A3 + (dt^2)*(A3^2);

C = I + 0.5*dt*A3;

u = zeros(N,1);

u(2:N-1) = 1;

ub = u; uc = u; uETDexp = u;for j=2:2:M

exp1 = uETDexp;

exp2 = uETDexp;

exp1(2:N-1) = B2\exp1(2:N-1);

exp2(2:N-1) = B3\exp2(2:N-1);

uETDexp = 2*exp2 - exp1;

end

Show More

Show Less

Was this answer helpful?

Describe your issueThe assistant will guide you

Chat 1:1 with a tutorLicensed Experts are available 24/7

100% satisfaction guaranteeGet all the answers you need

Related Homework Questions

I use C++ for the assignment and need some help for coding.

Hi, i use C++ for the assignment and need some help for coding … read more

A. Given the requirements as follows: Each employee works

A. Given the requirements as follows: Each employee works for only one department, and there are more than one employee working in a department. Each employee has a name, social security number, sex, … read more

write 5 C functions, which perform low-level bit operations

write 5 C functions, which perform low-level bit operations on integers. Please place your 5 functions in a file called bits.c. Although you most likely will want to write a main function for the purp… read more

Write your instructor a program that gives him the three characters

Write your instructor a program that gives him the three characters asked for. The matrix to use is: A B C D E F G H I J 1 3 N 1 M 4 R X 5 F N 2 N V T 5 K Q F M 3 P 3 9 K 1 Y R 4 V T F 3 4 3 3 9 V 4 Y… read more

The program will provide output data file for the selected

The program will provide output data file for the selected weather balloon's performance. User will select the weather balloon and the program will provide the table in the output data file with time,… read more

I want to be able run a macro where i can select a combo of

RRJha, I want to be able run a macro where i can select a combo of five numbers that are found in columns A,B,C,D,E on row 44, upon selecting these numbers it will select the range of numbers in colum… read more

Introduction. For this project you can either: • Write a

Introduction. For this project you can either: • Write a program in a language such as Java or C++. • Do the calculations using a spreadsheet such as Excel, as will be explained in class. You may not … read more

Problem 2: Let X and Y be independent N(0; 1) RVs. Suppose U

Problem 2: Let X and Y be independent N(0; 1) RVs. Suppose U =X+Y/root2 and V =X-Y/root2 a. Compute E, V ar(U), E[V ], V ar(V ), E[UV ]. b. Derive the joint distribution of (U; V ) by using the Jacobi… read more

Discrete Mathematics Customer Question Ask your own question

Discrete Mathematics Customer Question Ask your own question now > Algorithm Analysis •Consider searching algorithms on the following array of data: [22 21 9 4 16 2 10 14 20 31 26 19 17 28 8 13] Su… read more

If I know the air temperature, the relative humidity and the

If I know the air temperature, the relative humidity and the dew point, how do I calculate the vapour pressure of air in a room? Do I need any other information?… read more

A mass-less spring of constant k 75N/m is fixed on the left

A mass-less spring of constant k=75N/m is fixed on the left side of a level track. A block with a mass of 0.5kg is pressed against the spring and compresses it a distance d=0.8m. The block (initially … read more

In this activity, you will explore some ideas of probability

In this activity, you will explore some ideas of probability by using Excel to simulate tossing a coin and throwing a free throw in basketball. Toss a coin 10 times and after each toss, record in the … read more

Toss a coin 10 times and after each toss, record in the following

Toss a coin 10 times and after each toss, record in the following table the result of the toss and the proportion of heads so far. For example, suppose you obtain the following sequence of heads and t… read more

Amol this is a long one. Whenever you answer me back I

Amol this is a long one. Whenever you answer me back I'll send you the rest as always. you ; In this activity, you will explore some ideas of probability by using Excel to simulate tossing a coi… read more

a. Open Excel and start with a blank worksheet. Enter the

a. Open Excel and start with a blank worksheet. Enter the label Results from 1000 Tosses in cell A1. b. Enter the formula =INT(2*RAND()) in cell A3. Drag this formula down to cell A1002 to generate a … read more

5- Let F be the radial force field F xi+yj. Find the

6-Let F be the radial force field F = xi+yj. Find the work done by this force along the following two curves, both which go from (0, 0) to (2, 4). (Compare your answers!) A. If Z C1 is the parabola: x… read more

A crank an rocker mechanism similar to the one shown in the ...

A crank an rocker mechanism similar to the one shown in the above fig. has the following dimensions: AB=3 inch., BC = 8 inch., CD = 6 inch., and AD = 8 inch. When the crank AB, rotating counterclockwi… read more

Must answer this using microsoft Excel - Fx function ...

Must answer this using microsoft Excel - Fx function Showing the formula used): I now have $20,000 in the bank earning interest of .5 percent per month. I need $30,000 to make a down payment on a hous… read more

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.

JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.

Web sites like justanswer.com/legal

...leave nothing to chance.

...leave nothing to chance.

Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.

Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.

I will tell you that...the things you have to go through to be an Expert are quite rigorous.

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

Los Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

Hesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

Kernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

Woodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

Elkton, Maryland

He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here.

Dallas, TX

< Previous | Next >

Scott

MIT Graduate

5,558 satisfied customers

MIT Graduate (Math, Programming, Science, and Music)

LogicPro

Engineer

18,409 satisfied customers

Expert in Python,Java C++ C C# VB Javascript Design SQL HTML

Manal Elkhoshkhany

Tutor

4,775 satisfied customers

More than 5000 online tutoring sessions.

Linda_us

Finance, Accounts & Homework Tutor

3,138 satisfied customers

Post Graduate Diploma in Management (MBA)

Chris M.

M.S.W. Social Work

2,852 satisfied customers

Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)

F. Naz

Chartered Accountant

2,273 satisfied customers

Experience with chartered accountancy

Bizhelp

CPA

1,887 satisfied customers

Bachelors Degree and CPA with Accounting work experience

< Previous | Next >

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.