Ask any question about EPFL courses, lectures, exercises, research, news, etc. or try the example questions below.
DISCLAIMER: The Graph Chatbot is not programmed to provide explicit or categorical answers to your questions. Rather, it transforms your questions into API requests that are distributed across the various IT services officially administered by EPFL. Its purpose is solely to collect and recommend relevant references to content that you can explore to help you answer your questions.
In the mathematical field of group theory, Lagrange's theorem is a theorem that states that for any finite group G, the order (number of elements) of every subgroup of G divides the order of G. The theorem is named after Joseph-Louis Lagrange. The following variant states that for a subgroup of a finite group , not only is an integer, but its value is the index , defined as the number of left cosets of in . Lagrange's theorem This variant holds even if is infinite, provided that , , and are interpreted as cardinal numbers. The left cosets of H in G are the equivalence classes of a certain equivalence relation on G: specifically, call x and y in G equivalent if there exists h in H such that x = yh. Therefore, the left cosets form a partition of G. Each left coset aH has the same cardinality as H because defines a bijection (the inverse is ). The number of left cosets is the index [G : H]. By the previous three sentences, Lagrange's theorem can be extended to the equation of indexes between three subgroups of G. Extension of Lagrange's theorem Let S be a set of coset representatives for K in H, so (disjoint union), and . For any , left-multiplication-by-a is a bijection , so . Thus each left coset of H decomposes into left cosets of K. Since G decomposes into left cosets of H, each of which decomposes into left cosets of K, the total number of left cosets of K in G is . If we take K = (e is the identity element of G), then [G : ] = G and [H : ] = H. Therefore, we can recover the original equation G = [G : H] H. A consequence of the theorem is that the order of any element a of a finite group (i.e. the smallest positive integer number k with ak = e, where e is the identity element of the group) divides the order of that group, since the order of a is equal to the order of the cyclic subgroup generated by a. If the group has n elements, it follows This can be used to prove Fermat's little theorem and its generalization, Euler's theorem. These special cases were known long before the general theorem was proved.
[2]Paolo Prandoni, [3]LCAV, EPFL
In this notebook we will implement a simple fractional resampler that
uses local Lagrange interpolation. The resampler can be used to perform
any rational sampling rate change (but beware of aliasing when
downsampling!)
In [1]:
import numpy as np
import IPython
from scipy.io import wavfile
Local Lagrange interpolation[4]¶
To perform resampling we will need to compute subsample values and, in