Question: Problem 1 . [ 7 5 points ] Consider the following system of ordinary differential equations: d ( v e c ( x ) )
Problem points Consider the following system of ordinary differential equations:
vecvecvec
vec is an dimensional vector and is an matrix.
The time derivative is applied elementwise. In other words, for vecdots,dots,
is a hyperbolic tangent function defined as follows. For a scalar zinR, is the standard hyperbolic tangent. For a vector vecdots, is applied elementwise. In other words, dots, Therefore, is a matrixvector product.
Each element of the matrix is drawn from a Gaussian distribution with mean and standard deviation In Python, the matrix can be generated by:
numpy.random.randn NN
Each element of the initial condition vec is drawn from a Gaussian distribution with mean and standard deviation In Python, the matrix vec can be generated by:
numpy.random.randnN
In the following problems, find numerical solutions of the ODE under different values of using the explicit Euler method with step size and taking steps. Choose ie vec is a dimensional vector.
pts Set up the numerical algorithm using Euler's method that find a numerical solution of the ODE.
pts Let Find the numerical solution vec of the ODE in the interval tina Plot the first elements of vec iedots, and b describe the behavior of the solution in words.
pts Let Find the numerical solution vec of the ODE in the interval tina Plot the first elements of vec iedots, and b describe the behavior of the solution in words. Note that the behavior of the solution when and are drastically different.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
