Jump to content
coisox

[wta] Soalan Math For Own Project

Recommended Posts

Ok, nie bukan soalan assignment. This is for my own hobby/project. So aku menghadapi masalah math nie. Moga2 ada yg dapat membantu. Yg aku risau, org tak paham soalan aku :P

Diberi:

1500m = 480p

100m = 20p

Soalan 1: 400m = ?p

Soalan 2: Apakah operasi/rumusan/kaedah/algorithm yg terlibat?

Sebenarnya aku lebih memerlukan jawapan yg ke-2. Aku nak tau operasi yg macam mana yg me"logik"kan statement yg diberi. Aku tak kisah laa operasi yg pelik macam mana pun, simple ke, janji operasi tu boleh diterjemahkan ke bahasa programming.

Terpulang laa nak pecahkan nilai "p" kepada beberapa group asalkan rumusan yg korang buat tu akan memenuhi kehendak kedua-dua statement yg diberi.

Tetapi, syarat tambahan, jgn melibatkan operasi looping. Aku hanya nak operasi math but can be type into programming.

Imbasan silibus masa sekolah dulu:

100x = 50y <-- Statement 1

50x = 25y <-- Statemen 2

Jadi 220x = 50y/100*220 <-- Rumusan/algorithm

Edited by Coisox

Share this post


Link to post
Share on other sites

Laa tak sangka betul. Lepas 2 hari pikir tak dapat2 penyelesaian, lepas 1 jam je aku buat posting nie, dah tau plak caranya. :lol: Ternyata otak aku dah lemah betul ngan math nie. Maklum laa dah lama ak pakai.

Anyway, just in case ada yg berminat nak tau caranya or terlupa macam aku gak:

--> Andaikan m dan p masing2 ialah coodinate x dan y. Jadi kita akan dapat 2 coordinate iaitu (1500,480) dan (100,20). Then convert jadi persamaan garis lurus (y=mx+c), dapatkan kecerunan (y2-y1 / x2-x2). Then masukkan laa nilai yg dikehendaki.

Hampeh tul, camne leh lupa bendalah nie. Memula ingatkan tak logik. Sebab kalau 1500m = 480p, so 100m suppostly 32p (sebab bahagi 15).

Edited by Coisox

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...