🧮 You can learn math with AMPL and FARM 💳

🧮 You can learn math with AMPL and FARM 💳

By mabc95 | Cryptoplus | 17 Sep 2021


I was surfing Publish0x in a hide and seek game for inspiration, and giving my five daily tips, when I thought that Publish0x rewards are a good approach to teach 2x2 system of linear equations. Please, do not judge me; I am a math lover with an excess amount of energy drinks on my body, which is a mind-blowing combination.

So, getting inside the details of this nerdy idea that I had: The rewards consist in two coins, AMPL, FARM, each one has its price, and each article has the total sum of both. Assuming that the only thing that you could have, before an Internet breakdown, were the screenshots of two articles, you would be able to know what is the price for each token.

First, let us say that you have these two article’s screenshots (which I found interesting, you should read them after me)

 

37bd0df0f79a5e7b343850f9c79386c81b5c3169b38e4bf197eb5f0490a3948e.png

 

Now, the way we set up the equations would be like this: Let A be the unknown for the price of AMPL, and F the unknown for the price of FARM, and since we know how much of each one were given, and we have the total amount, in USD, we can write the 2x2 system.

355e4db2cb310f81c0e55931c5aed3bdb34f7dbc6e18a88e5c45255fc91439e3.png

For sake of simplicity (and aesthetics), we are going to multiply the whole system by 1000 and round up the coefficients up to 2 decimals, which would give us a good estimate.

 

7eaed96b9a11549b166d0cf4fc1537470dbf3879b5fabe7a90fbd96bfaa65b8d.png

 

Now, we could approach with the three classic methods for solving this, but I am going to focus just in one of them, which is called “igualación” in Spanish, and the closest thing that I can think of, is to call it “setting equal”, or “equaling”. What we do is to solve for the same unknown on each equation, in this case I choose to solve for A (but you could do it with F). Therefore, this would be step-by-step procedure:

 

 56e1122c3819a82a5ba7f50f896044c23d6362fe0a940b983ac56c7bdefa4200.png

6240d82a98f0c0f5f582473845ae2e82bce295060c7ac64309dbc2e5cdc8bbc7.png

 

Since we have two ways to express what A is, now it can be reduced to ONE EQUATION

 

 5210d94cec03bcf6c59b0f6029026cd856c0dc2f9304bf096fcd9f65672a9d11.png

Now we can write F in any equation where A is solved:

 aa5b97c9f9b1f969189a117c4a154c59614b8b1e9fd15c6cfa2019173c49d607.png

Hurrrraaayy! We found that the price of FARM (by the moment of the screenshots) was 194.95 dollars and the price of AMPL was 96 cents. I took the screenshot of that time price, and these were the actual values:

 

c4afb1aae49921f1cce179594d5bbb351f176c0602ebaa6808553d815337e3fc.png

 

So, as you can se, we were off by roughly a 1% error, which can be explained since the total balance in USD is given with just 2 decimal places. But hey! Now you have a way to solve for the price of 2 assets with 2 differents set of data (or N assets with N different sets of data). You can also apply simple linear algebra to this and obtain the same result.

Hope this have been interesting for you. I encourage people to find new ways to learn and teach topics that are supposed to be settled down in our minds. See you around my dear reader 😉

 

Hey! Btw, I also like to write poems to teach simple things about crypto, if you want to, you can check them right below 😊

 

 

📝 Crypto Poem 01 | Bitcoin, the ancient one 🗝️

📝 Crypto Poem 02 | Ethereum, the grasshopper 🦗

 

 

 

DISCLAIMER: All images are from my own or screenshots of the site

How do you rate this article?


120

1

mabc95
mabc95

Bachelor in Chemistry and a scientist since I was born in 1995. Education enthusiastic | Sports passionate | Music lover | Financial noobie. CH&MB. Venezuelan living in Colombia.


Cryptoplus
Cryptoplus

Basically talking about crypto and (maybe) combining it with (at least a little bit of) science, engineering, sports, comics, and almost anything I will come up with

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.