13.07.2015 Views

Analysis of Structures - Baustatik-Info-Server

Analysis of Structures - Baustatik-Info-Server

Analysis of Structures - Baustatik-Info-Server

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2.9. FUNCTIONS Page 31# increment the iteration counteri+=1# return the actual position, the function value# and the functions slope, the number <strong>of</strong> performed# iterations and the error code.return (x1,f0,f1,i,error)# the function newton is called with standard parameters# we pass the function <strong>of</strong> interest and a supposed start# positionres = newton(Myf,4.)# the returned tuple is printed into the console windowprint resEnd <strong>of</strong> Coding2.12.2011

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!