Path: blob/master/activities/test2_20161.ipynb
934 views
Test 2 - Computational Activity
This activity represents of the test 2. Each student must provide an ipython notebook with the solution of the proposed problems, along with all the performed procedures and related codes, as well as the obtained results.
The format used and comments are going to be taken into account.
Due to: ** Thursday May 26, Midnight**
Numerical differentiation
1. The crank AB of length R = 90 mm is rotating at constant angular speed of dθ/dt = 5000 rev/min. The position of the piston C can be shown to vary with the angle as
Write a program that computes the acceleration of the piston at θ = 0◦, 5◦, 10◦, . . ., 180◦ by numerical differentiation.
###Kirchhoff Law in a Cubic circuit array
2. In electronics, it is commonly used the problem of a cubic circuit where all the resistances are equal. With this problem, it is tried to show that is not necessary to use the kirchhoff law but instead using some symmetry arguments, to get the equivalent resistance of the system.
But, what happens to the equivalent resistance of the system when one of the resistances is changed to a different value of R? The next system of equations is obtained applying kirchhoff law to the cubic circuit with all resistances R equal to the same value except a resistance r.
Then, Find the equivalent resistance, varying the value of the resistance r on the cubic circuit. Does it grow increasing or decreasing r?
Make a plot of vs in ohms where
Show that the result obtained for when r=R coincides with the symmetry argument result (valid when all resistances in the circuit have the same value R) given by
For the sake of simplicity it can be used R=1$\OmegaV$ you consider convinient.
###Gaussian Quadrature Rule
3 In contraposition with other methods as trapezoidal and Simpson rules that use a first-order or second-order Lagrange polynomial equally spaced, the gaussian quadrature rule chooses the points for evaluation in an optimal way. The nodes in the interval and coefficients , are chosen to minimize the expected error obtained in the approximation
To illustrate the procedure for choosing the appropiate parameters, we will show how to select the coefficients and nodes when (two point gauss quadrature) in the interval .
First, consider the next integral where a polynomial of third-order has been chosen to approximate the function, although a different order can be used
but the right side is also equal to
equalling the last two expressions obtained for every coefficient , it is possible to obtain
and
Hence,
Use the expression deduced for the two point gaussian quadrature to calculate the following integrals
find the error for the gaussian, composite trapezoidal and composite Simpson quadrature integration. Which one is the better approximation in every case?