fredag 25 december 2020

Introducing uRlTeX

This is a nifty little micro service I came up with when I needed to embed an equation here in the blog, but could not find a simple way of doing it. On urltex.com, you can ask for an image, where the address is a LaTeX equation and the formatted image is returned. Below is an example of the Fourier transform.

 This image is obtained by embedding an image with this URL:

http://urltex.com/eq/F(%5comega) = %5Cint_{-%5cinfty}^%5cinfty f(t) e^{-i%5comega t} dt

 You can read more on the webpage. Note that the service is still experimental.



måndag 21 december 2020

On antenna efficiency

I rarely write on my blog about things related to my professional work. There are just so many other channels where that goes. But I felt it is time to address one particular issue, that still is very poorly understood and you can read a fantastic amount of nonsense on it. And it is about antenna efficiency (I work with designing antennas and test-systems for antennas).

Antenna efficiency is really something very simple. It is a measure of how much of the power that is sent to the antenna that is actually transmitted out in the air (and since a normal antenna (without amplifiers or other fancy stuff integrated) is reciprocal, this also holds for receiving antennas). So a very simple relation can be stated:


 Where Pin is the power sent to the antenna and Pout is the power transmitted by the antenna. e is called the efficiency or total radiation efficiency of the antenna. For small antennas, such as antennas in mobile phones, IoT equipment and WLAN (WiFi) products, this is the most important metric of an antenna. You want as much power sent to the antenna to enter the air, where it has a potential to reach and receiver. e is a number between 0 and 1, 1 being the best and meaning all power sent to the antenna get radiated.

There are many other parameters that can be stated about an antenna, some only related to the electrical properties. The most common one and, which most people are aware of, is the radiation pattern. This is a function, g(theta, phi) over the sphere indicating how large part of the radiation entering the air that is radiated in a certain direction. This is usually the most important property of a large antenna. You make an antenna large so that it can be used to direct the energy in a certain direction, for example towards a geo-stationary satellite.

Now, radiation pattern play an extremely small role in wireless communication between small terminals, such as computers and WLAN router. The reason is very simple: you have no clue in which direction the router is in relation to you WLAN device. So, ignore the radiation pattern.

The radiation pattern can be combined with the efficiency according to

 


to obtain the gain. This metric compensate for a finite efficiency of the antenna and indicate how large part of the energy sent to the antenna that is radiated in a certain direction.

If the antenna is connected to a transmitter (e.g. a WLAN modem) with a certain output power, P, that can also be added to the above formula, resulting in

 


where EIRP is an abbreviation for equivalent isotropic radiated power, a fancy name for how much power is transmitted in a certain direction (theta, phi). Note that P in this equation is the same as Pin in the first equation and thus


EIPR can be of importance for small antennas in some cases. The most well know is that regulators uses EIRP for limiting power out from a device in many situations. This is sensible since it is reasonable to require that a user does not get exposed to radiation intensity above a certain level.

There is one further property that is very common to look at for a small antenna and that is the return loss. This is a measure of how much energy sent to an antenna that enters the antenna. Some of it gets reflected back and is thus not used. For a small antenna it is common that something between 10 and 90% gets reflected back. Of course, 90% reflected back is not a very good antenna, but it is not uncommon. Making good antenna solutions is hard.

The part of the power that is not reflected back enter the antenna where one of two things can happen: It either gets dissipated in the antenna structure or it gets radiated. Of these, we of course want it to be radiated. The two mechanisms of losses can be combined, and then comprise the total radiation efficiency of the antenna, as used before and one can decompose the two loss mechanisms according to


Now comes my critique. As I stated above, the total radiation efficiency is the most important property of a small antenna. the return loss, er, can be great, the antenna can have some radiation pattern you think looks cool and the gain of the antenna can be this or that. But all of this does not matter of your total radiation efficiency is poor. If does a simple search in the internet for papers on new small antennas, they always state the return loss. And very often they state the radiation pattern. But very very rarely they state the total radiation efficiency. Why. Either because they do not understand what they are doing, or they cannot measure it (since it is hard to measure properly, both in a simulation and in a measurement set-up) and thus, cannot report it. Neither of these are good reasons for not reporting it.

Or, you can read on an otherwise very well informed and good webpage on antennas things like:

"Note that there are no TRP specs, so in general you don't want the WIFI antenna to have too high of an efficiency, or the SAR and peak gain values will require a large conducted power backoff"

This is of course total nonsense! You absolutely wants to as high efficiency as possible and back off output power if you are so lucky to have too high output power (TRP is an abbreviation for total radiated power). That will save energy and by that battery live.

tisdag 15 december 2020

Corona-kommision och hycklande självkritik

Regeringen gör en pudel när Corona-kommision kritiserar, men faktum är att detta varit känner hur länge som helst. Och självklart ska vi ha en vettig äldreomsorg, men det finns ju andra områden som är lika försummade, som vanlig vård och skola. Alla regeringar har använt dom automatiska nedskärningarna för att minska på dessa områden som en konsekvens av det nyliberala trycket väst bågnar under.
Men det är nog lite lustigt att man nu säger att delade turer och osäkra anställningar ska bort när man precis tvingar fackföreningsrörelsen att släppa dessa punkter genom ett absurt lagstiftningshot som går emot allt vad svensk modell heter.
Vi måste erkänna att Sverige är inte längre ett socialistiskt land. Vi är ett ultrakapitalistiskt land som i mycket är mest extremt i världen. Vi är beredda att acceptera nationalism för att stoppa flyktingar och tillsnurrad argumentation för att kunna införa den ena nyliberala "reformen" efter den andra. Men, medborgare, se till att hålla reda på åt vilket håll de kausala pilarna går. Det är inte immigranterna som bryter ner välfärdssamhället och skapar klassklyftor med invandrare i en underklass. Det är det nedbrutna välfärdssamhället som skapar klassklyftor med invandrare i underklassen. Och det är det nog många som vill ha. Trevligt med en tjänsteklass som kan ärva oss som hade turen att födas här. Men var åtminstånde ärlig med vad vi håller på med då. Och var också beredd på vad som måste offras. En undefinansierad äldrevård i 20 år ger höga dödstal i en pandemi. Vad tror du en undervärderad skola i 20 år ger?

onsdag 9 december 2020

Omfördelningen fortsätter

Regeringen med Sossarna i spetsen fortsätter sin omfördelningspolitik där skattebetalarna ska ge till de rika. Nu med slopad uppskovsränta på vinster på bostadsförsörjning. Med någon dimmig idé om att fler ska flytta. I själva verket är det ytterligare ett sätt att gynna de rikaste. De som gjort stora vinster på den dysfunktionella svenska bostadsmarknaden.
Detta är inte vägen att gå för att bygga ett jämställt samhälle med en rättvis omfördelning. Tvärtom. Detta är ytterligare ett sätt att gynna de rikaste. Hur kan Sossarna komma undan med denna nyliberala politik gång på gång? 

Ännu ett vansinnetsförslag från högern

Det finns vidriga människor i världen som är otroligt kreativa när det kommer till att utnyttja system och medmänniskor. Som de som driver Pelekh. Men vi kan inte ge efter för ondskan och forma vår värld efter en missbrukande minoritet. Det är inte det samhälle vi ska ha. I en välfärdsstat måste man acceptera att välfärdssystemen är för breda och kommer vissa till gagn som inte e.g. var tänkta att ta del av systemet. Det är viktigare att täcka in alla som verkligen behöver det än att vara absolut säker på att inte ett öre går till någon som inte förtjänar det. Såklart ska man inte vara naiv. Låt oss genomföra det Morgan Johansson föreslår i detta fallet och i det allmänna jobba mot att finstämda våra system. Men låt oss inte ge efter för ondskan. Det är inte den värld vi vill skapa.

måndag 7 december 2020

Interpreting the stock market

People are debating how the stock market can continue to grow during the pandemic when so many sectors are doing poorly. The answer is simple. Two things are driving the stock market development. There is one main factor driving short-term variations and another driving long-term. The short-term factor is expectations and the long term is available capital on the stock market.

Of these, the short-term is probably not very controversial and well accepted. However, the long-term driving force is interesting to think about a bit further. What can make capital available to the stock market? It is surely due to that some entry (person or corporation or government) has financial capability to invest on the stock market. This in turn, should be interpreted as this sector is doing "well" in some regard.

Now, during the pandemics, since the stock market is rising, that should be interpreted as that this very wealthy sector (that is, the entities with enough money to invest in stocks) has found the ways to manage the pandemic situation. Since we know that many people loose enormous amounts of money, it is clear where these money is going: to the financial sector. So, all that efforts governments are doing to save jobs will at the end simply boil down to redistribution from the common to the wealthiest.

måndag 2 november 2020

A new mathematical symbol

 We have a beautiful symbol for infinity, Lemniscate: Lemniskate. However, to my knowledge, we do not have a simple symbol to signal something finite. Thus, I want to propose a derivation of the Lemniscate symbol to indicate that: . A bit ironically when writing this blog post, I found the Wikipedia entry on infinity symbol and they they have an image similar to min, but there symboling infinity as used by Euler. So, I propose the opposite, as the curve now is finite in some sense.

lördag 10 oktober 2020

Elementary forces from the prime numbers

Gravity is unary, electroweak force i binary: there is plus and minus charge. The strong force ternary. There is a clear pattern here: There is an increase in "polarity" and the larger the number, the shorter the interaction distance.

So, a prediction; there is an infinite number of interaction forces in the Universe. The larger the polarity, the shorter the interaction distance. The next force can be expected to be quaternary (yes, lets expect the polarity to follow "prime" numbers).

The answer to the Fermi paradox is that a civilizational advanced enough discovers this fundamental property of nature and it opens up the capability to migrate from one type of interaction to a higher one. So, we should move our consciousness to be quark mediated, then to the quaternary force and so on.

Since each force operate at an ever shorted distance, it also operates at an ever shorter time scale. So, this will effectively slow down time. Our mission now, is to lure the end of the universe by ever slowing down of time by moving into an ever higher force interaction pattern.

Thus, we should no to out in space - there is nothing there for us to discover. We should to into the atom. Life can only occur on the second level - the electroweak level. But it must not stay there. It is not that we are early in developing intelligent life - we are late. Everyone else already left. It is the bloody dinosaurs fault. Had they not been, mammals had evolved much sooner and we would already be living in an atom.

The problem now is that we all look in the wrong direction - out in space - when we should be looking into the atom for refugee.

This all also gives an indication why gravity is special. 1 is not a real prime number. It cannot be used to build a group with any interesting structure. So it must be treated differently.

lördag 26 september 2020

The most important thing of our time

Is to become sustainable in general, and to resolve the climate crisis in particular. Integrating sustainability in business is one such key action that we need to take. However, it is commonly stated that sustainable businesses are also more profitable. Implying that if you become sustainable, you will become more profitable. But to be honest, this is far from likely to be true. Looking at this in depth, I am convinced, it is rather the opposite implication that holds. If you are very profitable, you can afford to be sustainable.
With this, I am not trying to say that we should not be sustainable. Absolutely not. It is the task of our time. But it must also be allowed to cost money. Because it will.

Did you do your best today?

I, and most people I know are extremely privileged. We live in history's most prosperous time and in the most wealthy part of the world in that time.
So, what are our obligations given this? I would say: Did you do your very best today?
I'm not gonna pretent that I don't have any opinion on what that means. One can argue, as is very common in western, post-existansialism society, that it is up to me to define and that we are domed to freedom. That might well be. But I think our extreme wealth come with a price. We have to be prepared to contribute to making this a better place. The number of people suffering is still today enormous. So, did you do your best today to remedy that?
This does not mean that you don't have any right to your life. But we share resources here. Was your share today proportional? Will it be tomorrow?
One should also not try to discard this line of reasoning with "well what did you do then". It is not easy to judge what is the best. If I give away all my money to charity today, it will have some very good conveniences in that absolute near-term. But it is not at all clear that it is the best thing to do in the long term. But surely, keeping all of them is also not optimal.
So, did you do your best today balancing this?

Högerns förslag blir allt mer absurda

Det ena mer absurda förslaget efter det andra på säkerhetsområdet kommer från högerkanten. KD vill att vi ska använda vårt bistånd till att bygga fängelser utomlands och M vill att man ska börja omhänderta kriminellas barn. Deras populism är pinsam. Är man så rädd för SD att man bara måste rikta in sej på dem och hur man ska bli mer lik dem?

Denna bilden är tagen från en BRÅ-rapport om riskfaktorer för ungdomsbrott:

För den som sett denna figur kan det tyckas löjligt enkelt att avgöra hur vi ska angripa ungdomsbrottsligheten. Börja med de ungdomar som har flera riskfaktorer och jobba med riskfaktorerna. Vinsten är en välanpassad vuxen och bidrar och drar in pengar till statskassan, istället för en brottsling som kostar pengar.

En viktigt riskfaktor är enligt rapporten dåliga relationer till sina föräldrar och andra typer av anti-sociala beteenden. Att då separera barn och föräldrar låter fullkomligt absurt.

De finns naturligtvis de som jonglerar med argumenten här också och försöker lägga fram att allt bara handlar om gener, men BRÅ lyfter ju i sin rapport fram att ärftliga faktorer är jätteviktiga. Men vi kan inte ändra en persons genetik. Och generna hos Danskar och Svenskar skiljer sig extremt lite åt. Ändå ha vi olika brottsstatistik. Så, är det inte lika bra att konstatera detta och jobba med det vi kan? Utan att ha något underlag tycka det mej också som att det borde vara väldigt svårt att skilja ut psykosociala faktorer från genetiska. Det är väl uppenbart att det inte går att ändra detta på ett år, eller kanske inte ens på en generation? Vad måste väl ändå ha en lite längre tidahorrisont än så?

En till intressant referens för den som vill läsa.