Re: [R] What's wrong with my code?

2012-08-12 Thread stephenxqy
Thanks! Date: Sun, 12 Aug 2012 07:42:12 -0700 From: ml-node+s789695n4640093...@n4.nabble.com To: stephen...@hotmail.com Subject: RE: What's wrong with my code? stephenxqy wrote Yes, missing * is the problem. Thank you a lot. Do you mean I need to incorporate all expression of

Re: [R] What's wrong with my code?

2012-08-12 Thread stephenxqy
wrong with my code? stephenxqy wrote It is a complex function, functions are quoted frequently, you may read from bottom up The independent variable for final fit is q %%Rg0 is a function of L and b Rg0sq<-function(L,b)L*b/6*(1-3/2*b/L+3/2*(b/L)^2-3/4*(b/L)^3*(1-exp(-2*L/b))) %%al

[R] unsued argument

2012-08-11 Thread stephenxqy
It is a complex function, functions are quoted frequently, you may read from bottom up The independent variable for final fit is q %%Rg0 is a function of L and b Rg0sq<-function(L,b)L*b/6*(1-3/2*b/L+3/2*(b/L)^2-3/4*(b/L)^3*(1-exp(-2*L/b))) %%alpha is a defined function alpha<-function(x)(1+(x/3.