search for: roax

Displaying 2 results from an estimated 2 matches for "roax".

Did you mean: rax
2012 Feb 29
1
The joys of Nabble: Re: Cannot use negative argument in function
...0^(-7) >> fpt <- Alpha+Beta*Press+Gamma**Temp*^2 >> Xv <- (RH/100)*fpt*Psv/Press >> >> ?Zm <- 1-(Press/TT)*(aa[1]+aa[2]**Temp*+aa[3]**Temp*^2 >> ? ? ? ? ? ? ? ? ? ? ?+(bb[1]+bb[2]*Temp)*Xv+(cc[1]+cc[2]**Temp*)*Xv^2) >> +(Press/TT)^2*(dd+ee*Xv^2) >> Roaxs <- pp*Ma/(zz*R*tt) >> Rov <- Xv*Press*M/(Zm*R*TT) >> Roa <- (1-Xv)*Press*Ma/(Zm*R*TT) >> n <- 1+(Roa/Roaxs)*raxs+(Rov/ro)*rvs >> return(n) >> } >> >> >> Basically, this is just a function to calculate index of refraction in air. >>...
2012 Feb 29
3
Cannot use negative argument in function
Hi, today i wrote a function in R of the type: index.refraction <- function(Temp,Press, RH, CO2) When i try to plug a negative number in Temp, i got this type of error: " n <- index.refraction(Temp= -40,100,80,CO2) Messages d'avis : 1: In Ops.ordered(left, right) : '-' is not meaningful for ordered factors 2: In Ops.factor(left, right) : - not meaningful for factors 3: