News about linux, computer, computer science, mathematics and white hot chocolate, the most beautiful drink in this world.
Thursday, March 14, 2013
Wednesday, March 6, 2013
Back to basics: Urms (part II)
So, let's revisit our half rectified sine wave example.
This is given by
DC component of the half rectified sine wave
This is given by
URMS of the half rectified sine wave
As seen in part I, this is
RMS value of the alternating component
Now, the next question is: how "strong" is the total alternating component in the half rectified sine wave?
In part I we established that URMS is splitted into two parts: a continuous component and the sum of sines. The latter, the sum, is the total alternating component of the signal. The formula is
where C=UDC. Substituting, we arrive at the RMS value for the alternating part
Tying this with Fourier
This gives the RMS value for the total alternating component, but what if we are interested in the RMS value of a specific harmonic?
The Fourier Transform will be our tool: it transforms a time-domain signal to a frequency-domain one, and the Fourier Series gives us the amplitude of each harmonic.
For a half rectified sine wave of period T, the amplitudes are given by:
Here is a table of the first 5 harmonics amplitudes relative to the peak amplitude of the original signal.
For a half rectified sine wave of period T, the amplitudes are given by:
Here is a table of the first 5 harmonics amplitudes relative to the peak amplitude of the original signal.
| Harmonic | Amplitude |
|---|---|
| 1 | 0.5 |
| 2 | 0.21221 |
| 4 | 0.042441 |
| 6 | 0.018189 |
| 8 | 0.010105 |
The following graph shows the harmonic amplitudes.
Remembering that the RMS value for a sine signal is the peak intensity divided by the square root of two, we have
| Harmonic | RMS Amplitude | Cumulative RMS |
|---|---|---|
| 1 | 0.35355 | 0.35355 |
| 2 | 0.15005 | 0.38408 |
| 4 | 0.030011 | 0.38525 |
| 6 | 0.012862 | 0.38546 |
| 8 | 0.0071454 | 0.38553 |
After just a few harmonics, we are almost at the calculated total value already.
Monday, March 4, 2013
Beefing up Public Key Encryption
Two MIT CSAIL PostDocs, Lin and Tessaro, have taken on to beef up the security of public key encryption, used for example to secure HTTPS communications, as reported in this article or by MIT's press office.
Monday, February 25, 2013
Back to basics: Urms
Following a question on PhysicsForum concerning the total Urms (Root Mean Square Potential Difference) due to the remaining alternating component in the half wave rectifier.
The half wave rectifier is obtained by using a single diode to let only half of the sine wave go through.
The source can be any signal, but the most frequent would be a sine signal, for instance coming out of a transformer.If we neglect the drop due to the diode, the potential difference on the load will be half of the sine wave.
Now comes a big question: what DC potential difference would be needed to get the same energy dissipated through a purely resistive load? If we call u(t) the varying, periodic signal and U the potential difference needed to generate the same energy, we get
Where T is the signal's period. Remembering that I=U/R (Ohm's law), we get that
R is constant in time, it can be taken out of the integral, and we end with
Let's go through a few examples.
The half wave rectifier is obtained by using a single diode to let only half of the sine wave go through.
The source can be any signal, but the most frequent would be a sine signal, for instance coming out of a transformer.If we neglect the drop due to the diode, the potential difference on the load will be half of the sine wave.
Now comes a big question: what DC potential difference would be needed to get the same energy dissipated through a purely resistive load? If we call u(t) the varying, periodic signal and U the potential difference needed to generate the same energy, we get
R is constant in time, it can be taken out of the integral, and we end with
Let's go through a few examples.
Sine wave of frequency f and peak Up.
Such a signal can be described by the function
Where ω is the pulsation and is
The duty cycle ω is the fraction of the period during which the signal will be at Up. Otherwise, the signal is 0.
And thus
And finally ...
Rectangular wave of amplitude Up and duty cycle ω
The duty cycle ω is the fraction of the period during which the signal will be at Up. Otherwise, the signal is 0.
And thus
And finally ...
Half wave rectified sine of amplitude Up and frequency f.
This is almost the same as for the full sine wave, except that instead of taking the integral from 0 to T, the integral goes only to T/2. This gives the result
Before moving to a different topic, let's establish a property we will use later.
Let's consider the signal u(t) with period T defined by
And
We will prove that
Let's go!
The part labeled A develops like this
The part labeled B is easy to develop and gives
Substituting back, we conclude that
This result will help us later.
{To be continued!}
Let's consider the signal u(t) with period T defined by
And
We will prove that
Let's go!
The part labeled A develops like this
The part labeled B is easy to develop and gives
Substituting back, we conclude that
This result will help us later.
{To be continued!}
Friday, February 22, 2013
Found at Auction: The Unseen Photographs of a Legend that Never Was
For $380, a Chicago real estate agent and historical hobbyist bought a stack of undeveloped films at an auction. His surprise was complete when he started processing them, as he found a very large collection of street pictures.
Of the photographer, Vivien Maier, almost nothing is known.
Some pictures here.
Wednesday, February 20, 2013
The craze of online education
Among all the things the Internet has to offer, the one I find the neatest is all the online resources for learning.
Starting with the "self study" found as free online course material, such as MIT's OpenCourseWare, Yale's Open Yale Courses or Carnegie Mellon's Open Learning Initiative. These are free materials covering a large number of topics in Sciences, Humanities or Economy. This is slightly more than a self-study book, it may have recording of actual lectures and possibly have assignments with solutions. The great part is that there are social sites such as OpenStudy to gather self students. There you may find some help, people to explain the topics that are less clear, or have a validation of your solutions.
Then, there are some site with a variety of topics, usually presented as lessons. The most famous is undoubtedly the Khan Academy. Each topic and subtopic is presented almost as an independent unit: it is up to the student to have a rational progression through the topics, but nothing will prevent one from starting at the end and making its way back.
And then there are the online lectures such as edX or Coursera which groups courses from various universities or Udacity which has its own courses. These are courses in the more classical academic sense, with a progression through different subtopics. There are assignments and quizzes and one would usually end up with a certificate of completion upon success.
It is to note that the latter start to have a model in which the courses are free, but either the certificate has a small fee or companies can subscribe and get the contacts of the top performers. For instance, Coursera and Udacity give access to corporations, such as Facebook or Twitter, to their registry of students, enabling them to find the talents of tomorrow. Think about it: you are studying in your living room and next thing you know: you have an e-mail from a big company showing some interest in your career. How cool is that?
Bottom line: the online course offering is growing fast and one could find pretty much anything to learn: almost all possible topics are present and available. However, this will not change who people are, and the one who will benefit the most from this are those who could have had other resources to learn this. My hope is that this will be made available to emerging countries as a possible start for a real education once low cost computers and Internet access have been deployed.
Starting with the "self study" found as free online course material, such as MIT's OpenCourseWare, Yale's Open Yale Courses or Carnegie Mellon's Open Learning Initiative. These are free materials covering a large number of topics in Sciences, Humanities or Economy. This is slightly more than a self-study book, it may have recording of actual lectures and possibly have assignments with solutions. The great part is that there are social sites such as OpenStudy to gather self students. There you may find some help, people to explain the topics that are less clear, or have a validation of your solutions.
Then, there are some site with a variety of topics, usually presented as lessons. The most famous is undoubtedly the Khan Academy. Each topic and subtopic is presented almost as an independent unit: it is up to the student to have a rational progression through the topics, but nothing will prevent one from starting at the end and making its way back.
And then there are the online lectures such as edX or Coursera which groups courses from various universities or Udacity which has its own courses. These are courses in the more classical academic sense, with a progression through different subtopics. There are assignments and quizzes and one would usually end up with a certificate of completion upon success.
It is to note that the latter start to have a model in which the courses are free, but either the certificate has a small fee or companies can subscribe and get the contacts of the top performers. For instance, Coursera and Udacity give access to corporations, such as Facebook or Twitter, to their registry of students, enabling them to find the talents of tomorrow. Think about it: you are studying in your living room and next thing you know: you have an e-mail from a big company showing some interest in your career. How cool is that?
Bottom line: the online course offering is growing fast and one could find pretty much anything to learn: almost all possible topics are present and available. However, this will not change who people are, and the one who will benefit the most from this are those who could have had other resources to learn this. My hope is that this will be made available to emerging countries as a possible start for a real education once low cost computers and Internet access have been deployed.
Monday, February 18, 2013
IPv6 anyone?
Recently, I was fiddling in a terminal and I noticed something strange: a bunch of connections going to IPv6 addresses.
A while back, I subscribed to Hurricane's TunnelBroker and I got my own networks, a /48 and a /64. However, this IPv6 was not one of them, and I was really sure that the tunnel was done. Actually, the tunnel terminated on a small cisco router that's been sitting quietly in a cupboard for a few weeks.
Here is the output of my "ifconfig":
em1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.6 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 2a00:1028:838a:1d8e:21d:60ff:fe04:f31c prefixlen 64 scopeid 0x0<global>
inet6 fe80::21d:60ff:fe04:f31c prefixlen 64 scopeid 0x20<link>
ether 00:1d:60:04:f3:1c txqueuelen 1000 (Ethernet)
RX packets 442625 bytes 241048181 (229.8 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 482924 bytes 92626306 (88.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
The IPv6 2a00:1028:838a:1d8e:21d:60ff:fe04:f31c subnet belongs to my provider, O2 Czech Republic (or Telefonica). So ... My ISP supports native IPv6? Cool!
Let's go further: as there is nothing in my small router's web interface, let's have a look through the CLI. Yep, both the inside (br0) and outside (ppp0) interfaces have IPv6. Quite expected!
br0 Link encap:Ethernet HWaddr B0:B2:DC:16:3A:4C
inet addr:10.0.0.138 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: 2a00:1028:838a:1d8e::1/64 Scope:Global
inet6 addr: fe80::1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3932310 errors:0 dropped:0 overruns:0 frame:0
TX packets:4920649 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:633818668 (604.4 MiB) TX bytes:43890958 (41.8 MiB)
A while back, I subscribed to Hurricane's TunnelBroker and I got my own networks, a /48 and a /64. However, this IPv6 was not one of them, and I was really sure that the tunnel was done. Actually, the tunnel terminated on a small cisco router that's been sitting quietly in a cupboard for a few weeks.
Here is the output of my "ifconfig":
em1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.6 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 2a00:1028:838a:1d8e:21d:60ff:fe04:f31c prefixlen 64 scopeid 0x0<global>
inet6 fe80::21d:60ff:fe04:f31c prefixlen 64 scopeid 0x20<link>
ether 00:1d:60:04:f3:1c txqueuelen 1000 (Ethernet)
RX packets 442625 bytes 241048181 (229.8 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 482924 bytes 92626306 (88.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
The IPv6 2a00:1028:838a:1d8e:21d:60ff:fe04:f31c subnet belongs to my provider, O2 Czech Republic (or Telefonica). So ... My ISP supports native IPv6? Cool!
Let's go further: as there is nothing in my small router's web interface, let's have a look through the CLI. Yep, both the inside (br0) and outside (ppp0) interfaces have IPv6. Quite expected!
br0 Link encap:Ethernet HWaddr B0:B2:DC:16:3A:4C
inet addr:10.0.0.138 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: 2a00:1028:838a:1d8e::1/64 Scope:Global
inet6 addr: fe80::1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3932310 errors:0 dropped:0 overruns:0 frame:0
TX packets:4920649 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:633818668 (604.4 MiB) TX bytes:43890958 (41.8 MiB)
ppp0 Link encap:Point-Point Protocol
inet addr:10.226.135.99 P-t-P:88.103.200.41 Mask:255.255.255.255
inet6 addr: 2a00:1028:838a:1d8c::1/64 Scope:Global
inet6 addr: fe80::b2b2:dcff:fe16:3a4c/10 Scope:Link
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:4873418 errors:0 dropped:0 overruns:0 frame:0
TX packets:3806955 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:4266450464 (3.9 GiB) TX bytes:623147288 (594.2 MiB)
When confronted to that, my first reaction is "Gosh! Firewall!". Here, that's fine: the firewall is configured to block everything that's not originating inside. This is confirmed by an online IPv6 scanner.
But then: "what if I put a rule that allows an IP on the Inside to be pinged from the Internet?"
Let's try it. It's only a try so I put the entry directly into the IPv6 FORWARD table. I found several sites that offer the ability to run a ping test to an IPv6 host. Here is the one I used. As expected, there are replies, versus none before the line was added.
Weird part is I do remember checking a few weeks ago and I had no IPv6 connectivity. So what happened?
On New Year's eve, my previous provider's supplied router died. So after a few calls and a few days, a tech from O2 showed up with a new router. I didn't really pay attention at the time, as I was quite busy with a number of other things.
The Model Number is P-660HN-T3A_IPv6, apparently a model specific to O2. When I looked up on the Zyxel website, I couldn't find any matching firmware; the latest vendor provided firmware dates back to 2011. Searching for "O2 IPv6" returns a few hits. However and funnily enough, it states that the P-66HN-T3A doesn't support IPv6 yet ...
Now, I have to contact my server hosting company in France, so they activate IPv6 as well.
And one more task on my to-do list: continue playing with IPv6.
Subscribe to:
Posts (Atom)

























