שמע ישראל ה' אלהינו ה' אחד
فمن كان يرجوا لقاء ربه فليعمل عملا صالحا ولا يشرك بعبادة ربه أحدا


Showing posts with label math. Show all posts
Showing posts with label math. Show all posts

Sep 22, 2016

Space

Posted By Snow at 9/22/2016 4 comments

particles not movingparticles moving
slowly nearby
particles moving
faster and further

OK imagine space being made up of particles
The number of particles stays the same, it's just how the particles move
The faster the particles move, the bigger area they span - which means expanding space



E = MC2
So, will this explains E = MC2 as it seems similar to AREA = πR2
As in energy is the area, spanned by particles (mass) moving at certain speed
So the highest energy, is when its mass moves at the speed of light (C)




Space expansion and contraction visualized #plsimgineacircle #haha
When the particles move faster, will they go farther distances so space expands (explodes the box)
When they move slower, will they go less distances so space contracts (implodes the box)


(          


          )

Besides moving, do the particles spin as well
With faster spin, they have high energy which distance them (radiate)
With slower spin, they have low energy which gets them closer (amass)

CAKERAWALA

The fate of the universe
So, there should be The Force energizing the particles | إن الله يمسك [Q35:41]
After that, these particles eventually lose energy after a time | لأجل مسمى [Q13:2]


The universe is built on mathematics #simulation #counteverything
Once upon a time, I was in an ocean of 100% mathematics #NASAisnotastrologer #LOL
Anyway, is this is a whale or a flying carpet (~ v ~)' #Ifeellikeadropout #didIgetthisright


Light, shine & shadows calculated with math #notafairy
BTW may I wishfully ask the VIPs to not look down on my education

I seek refuge in Allah SWT from errors
Only Allah SWT Knows Best والله أعلم



May 11, 2015

Curve Control

Posted By Snow at 5/11/2015 1 comments

Once upon a time, I wished one day I'll figure how to make a curve go straight through the control points. What a nerdy wish. But well, all this while, the curve only nears it. So today... somehow... ما شاء الله tada! (◠oo◠) Oh Allah SWT, thank you so much - I feel like Cinderella back from the palace. .:(◠v◠):. الحمد لله


Of course, even Bezier isn't perfect - the curve has its moments ha ha... The left one curves inward. But simply rearrange the controls, from clockwise to counter clockwise, & walla the right one curves outward. OK I honestly don't know the maths. All I care - it goes straight through the controls. (◠v◠) الحمد لله



And for a smooth curve, there's a variable smooth. But I can't figure how to calculate it... (◠v◠)'
Update: actually, this variable arcs the curve | photo

<style> div { position: fixed; } </style>

smooth = 0.7;        // this controls the curves smoothness - but I dunno how to figure it

point = function (x,y)
{    this.x = x;
      this.y = y;
};

c = new Array(       // the control points
      new point(100,400), new point(200,100), new point(100,250),
      new point(500,100), new point(300,200), new point(500,400)
);    nctrls = c.length;

p = new Array(        // the curve points
      new point(0,0), new point(0,0), new point(0,0), new point(0,0), new point(0,0),
      new point(0,0), new point(0,0), new point(0,0), new point(0,0), new point(0,0)
);    npoints = p.length;

function drawcurve()
{
      for (i=0; i<(nctrls-1); i++)
      {    for (j=0; j<npoints; j++)
            {
                 spanx = (c[i].x - c[i+1].x)/npoints*j;
                 spany = (c[i].y - c[i+1].y)/npoints*j;

                 p[j].x = c[i].x - spanx;
                 p[j].y = c[i].y - spany;

                 for (np=0; np<npoints; np++)
                 {    p[np].y -= spanx/npoints*(npoints-np)/smooth;
                       p[np].x += spany/npoints*(npoints-np)/smooth;
                 }

                document.write ("<div style='left:" + p[j].x + "; top:" + p[j].y + ";'>★</div>");
          }
     }
}

So here's the code in HTML JavaScript. .:\(◠v◠)/:. الحمد لله



May 8, 2015

Bezier Curve

Posted By Snow at 5/08/2015 0 comments

When you wanna draw a curve, you want something like this right... And the computer draws it for you - using math. Like this curve, it is drawn using the Bezier function. Bezier is one of the many math functions that can be used, each with its own way to draw a curve.


So when the computer draws a curve, it basically plots points ★ on your screen's display grid. First, you set the controls ❤ to control how the curve looks like. Then the math figures out where to plot points which make up the curve. | what is display grid



And... steady ya'all... here's the math equation to figure that out. OK Pierre Bezier worked out that math equation - that's why we call it the Bezier. So others simply turn that into code, to program the computer to do the math stuffs. An walla, here's the math turned into code (HTML JavaScript):


function facto (number)
{   fac = 1;
     for (f=1; f<=number; f++) fac*=f;
     return fac;
}

function blend (u, i)
{   return facto(nctrls) / (facto(i) * facto(nctrls-i)) * Math.pow(u,i) * Math.pow((1-u),(nctrls-i));
}

function drawbeziercurve ()
{   for (np = 0; np < npoints; np++)      // from first point (P1) to last point (Pn)
     {     x = 0; y = 0;
            u = np / (npoints - 1);
            for (i=0; i < nctrls; i++)            // get point's coordinate (x,y)
            {    x += blend(u,i) * c[i].x;
                  y += blend(u,i) * c[i].y;
            }
            document.write ("<div style='left:" + x + "; top:" + y + ";'>★</div>");     // plot point at (x,y)
     }
}


An example of Bezier surface modelling (using OpenGL)


And when we can draw a curve on a computer, we can draw so many things! Like these things below. This can help people design homes, planes; or terrains, cities; or model the human body for medical purposes. There's so many things you can do when you can visualize things on the computer.


So this goes to show, some people did go to university with a purpose. So cheer up Malaysia, some people exists. And cheer up Snow, destiny for you - is beautiful. (◠v◠)' ما شاء الله



May 5, 2015

Crystal Pattern

Posted By Snow at 5/05/2015 0 comments



ما شاء الله it's beautiful ... This is a girih pattern said to be from Iran.

In my eyes, it seems to look similar to quasicrystal. Quasicrystal is thought to be a new discovery in maths and chemistry; but this beautiful pattern has graced the architectures in the muslim world as early as the 13th century. Like the Darb-i Imam in Isfahan, Iran dan Alhambra Palace in Spain. [Nobel | NYT] الحمد لله

Pattern in Darb-i Imam
SCIENCE MAG


The patterns on the medieval architectures are not simply patterns. When chemists see it, they see how atoms can bond into quasicrystals.

So, how does both mosaic tiles and atoms bond into quasicrystals? See the shapes below, all of them can be tiled repeatedly without leaving gaps — except for the pentagon. OK I'm not an expert ... ha ha. But if you want to tile the pentagon nicely, you break the pentagon into smaller pieces, rotate and tile, until you get a pattern which does not repeat. Right?

A pattern which does not repeat, is quasicrystal.




And the size of the rotated pieces are related to the Golden Ratio, as to not leave gaps. | reference
بسم الله الرحمن الرحيم
أفلم ينظروا إلى السماء فوقهم كيف بنيناها وزيناها وما لها من فروج
Have they not looked at the heaven above them - how We structured it and adorned it and (how) it has no rifts? [Holy Quran 50:6] ☆ No Rifts
..............................................................................................................................................................................................



OK, this is my attempt to tile pentagons, hexagons & octagons. Is the Iranian soul in my blood... but more importantly, is this right? Hope I'm not mistaken. Well, it has its measurements. Perhaps one day, Allah SWT will bless with the knowledge to build medieval 14th century dome, like Turabeg Khanym. Besides it's craftsmanship, it is also a calendar. ما شاء الله



Nobel Prize in Chemistry 2011
Quasicrystal by Dan Shechtman


Atoms were believed to be packed inside crystals in symmetrical patterns that were repeated periodically. But Shechtman saw atoms in crystals packed in a pattern that could not be repeated. Initially, his findings was dismissed as impossible, and he was asked to leave his research group. But eventually it forced scientists to reconsider their conception of the very nature of matter.

A Swedish company has also found quasicrystal in certain steels, which reinforces it like armor. | Nobel


I seek refuge in Allah SWT from errors
Only Allah SWT Knows Best والله أعلم



Mar 1, 2015

Currency Value

Posted By Snow at 3/01/2015 3 comments
Exchange
Rate
United States
Of America
KSA sells oil
to US in $
KSA buys bag
from UK in £
Kingdom Of
Saudi Arabia
United
Kingdom
$1 = £1 receives
$100
exchange
£100

payment
£100 — £70
BALANCE £30
receives
£70

if exchanged
£70 = $70
$1 = £0.6 receives
$100
exchange
£60

exchange + balance
£60 + £30 = £90

payment
£90 — £70
BALANCE £20
receives
£70

if exchanged
£70 = $116
$1 = £0.4 receives
$100
exchange
£40

exchange + balance
£40 + £20 = £60

cannot afford £70
BALANCE £60 = $150
no purchase

BALANCE 1
£70 + £70 =
£140 = $350
afford 3 oil barrels

BALANCE 2
$70 + $116 =
$186 = £74
afford 1 oil barrel

What changes the values At the current exchange rate £60 is $150
but this $150 cannot even afford 1 bag
when it used to afford 2 bags
Different
balances

Why currency value fluctuations seems...

The table shows a simplified imagined trading between nations — where the United States buys oil from Saudi Arabia, and Saudi Arabia buys luxury bags from United Kingdom. If this table is right — say when the US$ decreases in value — since Saudi Arabia sells oil using the US$, even when they sell the same amount of oil at the same price, their income decreases so much until they can't afford luxury bags from United Kingdom anymore.

With
RM300
I am a millionaire
in Indonesia
And see how the United Kingdom has different balances bcoz of the exchange rate. This means more money (profit) can be made simply by exchanging money — without the need to deliver commodities. When profit (or loss) can be made like this, it seems it will increase (or lose) money, out of thin air.

So that's the power of currency exchange? Did I understand it right? But since money is not a commodity — don't you think it is ... wrong (=-=)v والله أعلم

A plate of delicious biryani RM10
KWD0.82   GB£1.79   EU€2.47   US$2.77   TR₺6.94
AED10.16   SAR10.38   CN¥17.35   JP¥331.08

Buy 30 with 7% discount at 1 million Rp

Perhaps a single accepted currency makes transactions easier across regions, like the Euro €
And this currency represents gold, in which the gold is entrusted in an international vault

INTERNATIONAL

UNITED
STATES
SAUDI
ARABIA
UNITED
KINGDOM
GOLD VAULT
1 Dinar = 4.25 grams
currency to
represent Dinar
(paper / digital)

currency in circulation

United States
Of America
KSA sells oil
to US in
Gold Dinar
KSA buys bag
from UK in
Gold Dinar
Kingdom Of
Saudi Arabia
United
Kingdom
receives
D100
payment
D100 — D70
BALANCE D30
receives
D70
receives
D100
payment
D100 — D70 = D30

BALANCE
D30 + D30 = D60
receives
D70

BALANCE
D70 + D70 = D140
receives
D100
payment
D100 — D70 = D30

BALANCE
D30 + D60 = D90
receives
D70

BALANCE
D70 + D140 = D210

I seek refuge in Allah SWT from errors
Only Allah SWT Knows Best والله أعلم

Regarding the oil :: يوشك الفرات أن يحسر عن كنز من ذهب فمن حضره فلا يأخذ منه شيئا


Welcome
Peace be upon you


Bat Zion

REMEMBER


קרן  .:💡:.  قرن
now in the cave
please forgive me if ever

Blog Archive




قربان

明 NIRVANA


يا غلام إني أعلمك كلمات
احفظ الله يحفظك
احفظ الله تجده تجاهك

إذا سألت فاسأل الله
وإذا استعنت فاستعن بالله

واعلم‏‏ أن الأمة لو اجتمعت
على أن ينفعوك بشيء
لم ينفعوك إلا بشيء
قد كتبه الله لك

وإن اجتمعوا
على أن يضروك بشيء
لم يضروك بشيء
إلا بشيء قد كتبه الله عليك

رفعت الأقلام وجفت الصحف



2009-2024 Lovely Memoirالحمد لله على نعمة الإسلام
Q Quran . SB Sahih Bukhari . SM Sahih Muslim . AD Abu Dawood . AN An Nasai . IM Ibn Majah . MM Muwatta Malik