Analysis of Structures - Baustatik-Info-Server
Analysis of Structures - Baustatik-Info-Server
Analysis of Structures - Baustatik-Info-Server
- 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