Mavzu: Tenglamalar sestemasini yechishning Zeydel va Nyuton usuli
Download 104.31 Kb.
|
Muhammad al-Xorazmiy nomidagi Toshkint axborot texnalogiyalari universituti. 3-Labaratoriya ishi Mavzu:Tenglamalar sestemasini yechishning Zeydel va Nyuton usuli Bajardi:Abdullayeva.N Tekshirdi:Akbaraliyev.B CHIZIQSIZ TENGLAMALAR SISTEMASINI TAQRIBIY YECHISHNI ANIQLIKDA ZEYDEL USULI BILAN TOPISH#include #include using namespace std; int main () { float a[100], b[100], c[100]; int i=0; a[0]=65*1./12; b[0]=78*1./10; c[0]=41*1./9; a[i+1]=65*1./12-3*1./12*b[i]-4*1./12*c[i]; b[i+1]=78*1./10-2*1./10*a[i+1]-1*1./10*c[i]; c[i+1]=41*1./9-3*1./9*a[i+1]-2*1./9*b[i+1]; cout<<"\n\t"< while(sqrt(pow((a[i+1]-a[i]),2)+pow((b[i+1]-b[i]),2)+pow((c[i+1]-c[i]),2))>=0.001) { i=i+1; a[i+1]=65*1./12-3*1./12*b[i]-4*1./12*c[i]; b[i+1]=78*1./10-2*1./10*a[i+1]-1*1./10*c[i]; c[i+1]=41*1./9-3*1./9*a[i+1]-2*1./9*b[i+1]; cout< } cout<<"ANIQLIK: "< return 0; } A B C D E F G
Download 104.31 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling