hi
I've to write a function with parameter b, where an integral is in this function. how can i do it? thanks for any advice
L=2; N=L*L; j=1;Kb=1;syms bk=2*sinh( 2 * b * j )/(cosh( 2 * b * j))^2;intg=@(x)(log ( 0.5 * ( 1 + sqrt(1 - (k(b)).^2 .* (sin(x))^2 ))));INTEGRAL=(1/(2*pi)) * integral(intg,0,pi);Z(b)=(2* cosh(2 * b * j) * exp(INTEGRAL))^N;E_form(b)=-diff(log(Z))/N;
Best Answer