Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon

## sulu

 Language:Ada Assembly Bash C# C++ (gcc) C++ (clang) C++ (vc++) C (gcc) C (clang) C (vc) Client Side Clojure Common Lisp D Elixir Erlang F# Fortran Go Haskell Java Javascript Kotlin Lua MySql Node.js Ocaml Octave Objective-C Oracle Pascal Perl Php PostgreSQL Prolog Python Python 3 R Rust Ruby Scala Scheme Sql Server Swift Tcl Visual Basic Layout:Vertical Horizontal
 Show compiler warnings [ + ] Show input Compilation time: 0,12 sec, absolute running time: 0,08 sec, cpu time: 0,09 sec, average memory usage: 12 Mb, average nr of threads: 3
 fork mode |  history  | discussion
```Лабраторная работа №1:
Метод половинного деления
============================
Исход. данние [a,b] = (-5,0)
x^3 - 3x +1 = 0
№ итерации   	 a  	  	 b   	 	 x   		 f(x)
-----------------------------------------------------
ит№:1   a= -2,5         b= 0          x= -2,5           f(x)= -7,125
ит№:2   a= -2,5         b= -1,25          x= -1,25           f(x)= 2,796875
ит№:3   a= -2,5         b= -1,875          x= -1,875           f(x)= 0,033203125
ит№:4   a= -2,1875         b= -1,875          x= -2,1875           f(x)= -2,905029296875
ит№:5   a= -2,03125         b= -1,875          x= -2,03125           f(x)= -1,28713989257813
ит№:6   a= -1,953125         b= -1,875          x= -1,953125           f(x)= -0,591205596923828
ит№:7   a= -1,9140625         b= -1,875          x= -1,9140625           f(x)= -0,270239353179932
ит№:8   a= -1,89453125         b= -1,875          x= -1,89453125           f(x)= -0,116349995136261
ит№:9   a= -1,884765625         b= -1,875          x= -1,884765625           f(x)= -0,0410341992974281
```