search for: brobdingnagian

Displaying 9 results from an estimated 9 matches for "brobdingnagian".

2008 May 28
1
indexing lists, using brobdingnagian
Dear R-Gurus, I have ended up with a calculation problem where I need to use brobs. I have to work my way through a vector with a for loop to act on each element in a calculation (refering to the previous value in the new vector of results -- so as far as I know I can't use "apply") -- this produces a list of brobs. My problem is, how do I act on, plot this list, or do vector
2006 Sep 15
1
setMethod() woes
...elf contained, minimal) is included below. But, with this, the following session shows that something is wrong: > a <- new("brob",x=1:5,positive=rep(T,5)) > b <- new("glub",real=a,imag=a) > a+b Error in a + b : binary operator " + " not defined for Brobdingnagian numbers In addition: Warning message: Ambiguous method selection for "+", target "brob#glub" (the first of the signatures shown will be used) brob#ANY ANY#glub in: .findInheritedMethods(classes, fdef, mtable) I don't understand what to do to avoid getting th...
2006 Aug 30
1
setMethod() and log()
...gamma =, lgamma =, sin =, sinh =, tan =, tanh =, trunc = as.brob(callGeneric(as.numeric(x))), stop(paste(.Generic, "not allowed on Brobdingnagian numbers")) ) } ) -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743
2019 Jun 23
2
Calculation of e^{z^2/2} for a normal deviate z
...ms on the log scale, e.g. https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.misc.logsumexp.html I don't know where this has been implemented in the R ecosystem, but this sort of computation is the basis of the "Brobdingnag" package for operating on very large ("Brobdingnagian") and very small ("Lilliputian") numbers. On 2019-06-21 6:58 p.m., jing hua zhao wrote: > Hi Peter, Rui, Chrstophe and Gabriel, > > Thanks for your inputs -- the use of qnorm(., log=TRUE) is a good point in line with pnorm with which we devised log(p) as > > log(...
2019 Jun 23
0
Calculation of e^{z^2/2} for a normal deviate z
...t; > https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.misc.logsumexp.html > > I don't know where this has been implemented in the R ecosystem, but > this sort of computation is the basis of the "Brobdingnag" package for > operating on very large ("Brobdingnagian") and very small > ("Lilliputian") numbers. > > > On 2019-06-21 6:58 p.m., jing hua zhao wrote: > > Hi Peter, Rui, Chrstophe and Gabriel, > > > > Thanks for your inputs -- the use of qnorm(., log=TRUE) is a good point > in line with pnorm with which...
2019 Jun 24
2
Calculation of e^{z^2/2} for a normal deviate z
...oc/scipy-0.14.0/reference/generated/scipy.misc.logsumexp.html >> >> I don't know where this has been implemented in the R ecosystem, but >> this sort of computation is the basis of the "Brobdingnag" package for >> operating on very large ("Brobdingnagian") and very small >> ("Lilliputian") numbers. >> >> >> On 2019-06-21 6:58 p.m., jing hua zhao wrote: >> > Hi Peter, Rui, Chrstophe and Gabriel, >> > >> > Thanks for your inputs -- the use of qnorm(., log...
2019 Jun 24
0
Calculation of e^{z^2/2} for a normal deviate z
...doc/scipy-0.14.0/reference/generated/scipy.misc.logsumexp.html >> >> I don't know where this has been implemented in the R ecosystem, but >> this sort of computation is the basis of the "Brobdingnag" package for >> operating on very large ("Brobdingnagian") and very small >> ("Lilliputian") numbers. >> >> >> On 2019-06-21 6:58 p.m., jing hua zhao wrote: >> > Hi Peter, Rui, Chrstophe and Gabriel, >> > >> > Thanks for your inputs -- the use of qnorm(., log=T...
2007 Aug 30
7
Behaviour of very large numbers
Dear all, I am struggling to understand this. What happens when you raise a negative value to a power and the result is a very large number? B [1] 47.73092 > -51^B [1] -3.190824e+81 # seems fine # now this: > x <- seq(-51,-49,length=100) > x^B [1] NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN <snip> > is.numeric(x^B) [1] TRUE > is.real(x^B) [1]
2019 Jun 21
4
Calculation of e^{z^2/2} for a normal deviate z
You may want to look into using the log option to qnorm e.g., in round figures: > log(1e-300) [1] -690.7755 > qnorm(-691, log=TRUE) [1] -37.05315 > exp(37^2/2) [1] 1.881797e+297 > exp(-37^2/2) [1] 5.314068e-298 Notice that floating point representation cuts out at 1e+/-308 or so. If you want to go outside that range, you may need explicit manipulation of the log values. qnorm()