Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C++ by Egor ( 13 years ago )
double a,b;// начальные границы
 double x0=-3, h=0.1; //начальная точка и шаг
 a=x0;
 b=x0+h;
 pair<double,double> xa, xb;
 xa.first=x.first-a*d.first;
  xa.sec
 xb.first=x.first-b*d.first;
  xb.sec
 while(fun(xa)>fun(xb)){
  a=b;
  b+=h;
  xa.first=x.first-a*d.first;
   xa.sec
  xb.first=x.first-b*d.first;
   xb.sec
 }

 

Revise this Paste

Parent: 69029
Your Name: Code Language: