Variable ၂ခုပါ equation ကို ေျဖရွင္းနည္း

Variable ၂ခုပါ equation ကို ေျဖရွင္းနည္း
============
ax + y = c
x + by = d
(a, b, c, d, x, y ေတြဟာ double value ေတြျဖစ္ပါတယ္။ )
နည္းလမ္း (1)
==========
double y1 = (d - c/a) / (b - 1/a);
double x1 = (c - y1) / a;
နည္းလမ္း (2)
==========
double y2 = (c - a*d) / (1 - a*b);
double x2 = d - b*y2;
==========

Comments

Popular posts from this blog

သခ်ၤာ တြက္ခ်က္မႈ ဆိုင္ရာ နည္းလမ္းမ်ား

Software Development Library

Android Spinner (Drop Down) Example