Sei sulla pagina 1di 6

REPORT

NAME: DAVID VILLAMARIN

PROFFESOR: FREDERIC SURRE

EJERCISE 1

Consider the function 𝑓(𝑡) = 1 − 𝑒 −𝑡/𝜏 defined for t ∈ [0,10]. Preliminary question
10
1.- With pen and paper, calculate the value of 𝐼 = ∫0 𝑓(𝑡)𝑑𝑡
 Program in Matlab:

 Compare the results from the three methods with the theoretical value and explain
the results obtained

𝜏=1
integration by substitution approximate methods of
percentage error
integration
Forward= 8.7293 3.0082 %
𝐼 = 9,0000454 Backward= 9.2293 2.5472%
Trapezium= 8.9793 0.2305%

Conclusion:
𝜏=4
integration by substitution approximate methods of
percentage error
integration
Forward= 6.0941 3.7008 %
𝐼 = 6.3283 Backward= 6.5530 3.5507%
Trapezium= .3236 0.07426%

Conclusion:
EXERCISE 2

In this question, we are looking at integrating a chirped signal. Chirped signals are quite common
in communication, radar/sonar and in some types of sensors. Chirped means that the frequency
of the signal varies with time in a predetermined way. Consider the following chirped signal:
𝑔(𝑡) = 𝑐𝑜𝑠(𝑡 2 ). This signal is multiplied by t to generate the measured signal, noted h and
defined by:

ℎ(𝑡) = 𝑡 ∗ 𝑔(𝑡)

1. Plot the variation of g in the intervals [0,π] and [0,2π].

2. With pen and paper, calculate the following integrals:


3. Using forward or backward method (your choice), estimate the value of J1 and J2 using
15 samples.

Program in Matlab:

CALCULATING J1

CALCULATING J2

4. Same question using the trapezoid method for the same number of samples.
5. Write a MATLAB code to implement the Simpson’s rule and estimate both J1 and J2
using 15 samples.

6. Compare the results obtained for the three methods and justify them.

Potrebbero piacerti anche