search for: psfcex

Displaying 1 result from an estimated 1 matches for "psfcex".

Did you mean: pdftex
2012 Aug 11
1
unsued argument
...hat quote w, PDebye, Rg, parameters are v, L and b Pexv<-function(v,L,b)w(q*Rg(L,b))*PDebye(L,b)+(1-w(q*Rg(L,b)))(1.22*(q*Rg(L,b))^(-1/v)+0.4288*(q*Rg(L,b))^(-2/v)-1.651*(q*Rg(L,b))^(-1/v)) %%Another defined function cf<-function(L,b,pa,pb)pa/(L/b)^pb %%A function of q, quote Pexv, Rgsq, cf Psfcex<-function(v,L,b,pa,pb)Pexv(v,L,b)+cf(L,b,pa,pb)*b/L/15*(4+7/q^2/Rgsq(L,b)-(11+7/q^2/Rgsq(L,b))*exp(-q^2*Rgsq(L,b))) %%non-linear fit Pfit<-function(p)sum((I-Psfcex(p[1],p[2],p[3],p[4],p[5]))^2) wavefit<-nlm(Pfit,c(1.5,500,5,1,0.1),hessian=TRUE) error code: Error in c(1.5, 500, 5, 1, 0.1)...