h1 = 313.93; h2 = 2676; h3 = 419; w1 = 4.2; w = poly(0,'w') // w = w2 P = w1*h1 + w*h2 - h3*(4.2+w) function [x] = stress(a,b,f) N = 100; eps = 1e-5; if((f(a)*f(b))>0) then error('no root possible f(a)*f(b)>0'); abort; end; if(abs(f(a))0) c = (a+b)/2 if(abs(f(c))