function H=heun(f,a,b,ya,M) %Input - f is the function entered as a string 'f' % - a and b are the left and right endpoi…
Numerical+Recipe 源代码
汇集 Numerical+Recipe 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
function C = lspoly(X,Y,M) %Input - X is the 1xn abscissa vector % - Y is the 1xn ordinate vector % - M is the de…
function D=qr2(A,epsilon) %Input - A is a symmetric tridiagonal nxn matrix % - epsilon is the tolerance %Output - D is the n…
function [L,n]=difflim(f,x,toler) %Input - f is the function input as a string 'f' % - x is the differentiation point % …
function [C,X,Y]=cheby(fun,n,a,b) %Input - fun is the string function to be approximated % - N is the degree of the Cheb…
function [p1,err,k,y]=secant(f,p0,p1,delta,epsilon,max1) %Input - f is the object function input as a string 'f' % - p0 and …
function [T,Z]=rks4(F,a,b,Za, M) %Input - F is the system input as a string 'F' % - a and b are the endpoints of the i…
function T=rctrap(f,a,b,n) %Input - f is the integrand input as a string 'f' % - a and b are upper and lower limits of int…
function [p0,err,k,y]=newton(f,df,p0,delta,epsilon,max1) %Input - f is the object function input as a string 'f' % - df is t…
function S=csfit(X,Y,dx0,dxn) %Input - X is the 1xn abscissa vector % - Y is the 1xn ordinate vector % - dxo =…