{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Quiz4

# Quiz4 - MAE 9 Quiz#4 Fall 2006 Due on Friday November 17...

This preview shows pages 1–2. Sign up to view the full content.

/* MAE 9: Quiz #4, Fall 2006 Due on Friday, November 17, before 9:00 pm During the quiz, you are not allowed to exchange information or files related to the test problems with others. Use the program below (starting with #include <stdio.h>) as the starting point for quiz 4. Add the necessary code to the functions prob1() and prob2(). You will not need to change anything in main() and runge_kutta(). In void prob1(void), use the function: void runge_kutta(double t_end, double del_t, double u_begin); to solve the following initial value problem. The evolution of u with time t is geiven by the ordinary differential equation: du/dt = 1.0 + u*u with the initial condition u=0 at t=0. Compute u(t) from t=0 to 0.5 with the time increment del_t=0.05. You need to complete double f_value(double t, double u); In prob2(void), compute (A*B)*C where A=a[4][6], B=b[6][4], C=c[4][5] are defined in prob2(). Print the result by using %11.3e.*/ #include <stdio.h> /* function prototypes */ void prob1(void);

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 4

Quiz4 - MAE 9 Quiz#4 Fall 2006 Due on Friday November 17...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online