Displaying 11 results from an estimated 11 matches for "1e15".
Did you mean:
115
2002 Jan 16
0
round() doesn't (PR#1139)
...fixed the fix; here's the relevant line from
fround.c:
if(dig <= 0 && fabs(res) < 1e9) res = (int)floor(res + 0.5);
This solution casts the result as int if it's under a billion, but it
re-introduces the original problem for large numbers:
R-patched 01/13/2002> round(1e15, -2) - 1e15
[1] -0.25
So I'd ask to re-open PR#1139, and suggest another look at the "fround" C
function that I posted (in a followup) on 10/24/2001 (copied below). I
substituted it into src/nmath/fround.c, successfully re-built R, and it works.
It handles th...
2010 Dec 07
3
More elegant magnitude method
...tion that works *so far*, but it is ugly and
probably buggy. In the interest of avoiding code-based outliers in my
data, I thought I would ask if anyone here has a better way.
> scl <- function(x){
+ length(charToRaw(format(trunc(x), scientific = F)))-1}
> a <- 123456789
> b <- 1E15
> c <- 12.345
> scl(a)
[1] 8
> scl(b)
[1] 15
> scl(c)
[1] 1
Thanks
--------------------------------------
Jonathan P. Daily
Technician - USGS Leetown Science Center
11649 Leetown Road
Kearneysville WV, 25430
(304) 724-4480
"Is the room still a room when its empty? Does the roo...
2019 Jan 22
2
Objectsize function visiting every element for alt-rep strings
...LTREP it.
> That's what happens for integers, but indeed fails to happen for
> such as.character(.)ed integers.
>
> From my eRum presentation (which took from the official ALTREP documentation
> https://svn.r-project.org/R/branches/ALTREP/ALTREP.html ) :
>
> > x <- 1:1e15
> > object.size(x) # 8000'000'000'000'048 bytes : 8000 TBytes -- ok, not really
> 8000000000000048 bytes
> > is.unsorted(x) # FALSE : i.e., R's *knows* it is sorted
> [1] FALSE
> > xs <- sort(x) #
> > .Internal(inspect(x))
> @80255f8 1...
2004 Jan 05
2
Codec Negotiation Does not seem to work as expected ?? Help Please !!
...message. I do not
know why asterisk behaves like this, and I do think if asterisk send the
message back to ATA with g729 in its message it should have worked fith
nating bridging.
WARNING[1248642112]: File channel.c, Line 1853
(ast_channel_make_compatible): No path to translate from
SIP/sip-a-1e15(256) to SIP/4097-96d8(4)
Case 2 : ATA calling sip-b
===================
ATA indicate that it can have following, codecs in SDP packet, in following
order
ATA --> asterisk INVITE message
g729
ulaw
alaw
asterisk --> sip-b INVITE message (Note that unlike case 1, the decision
by * i...
2019 Jan 21
0
Objectsize function visiting every element for alt-rep strings
...object *but* should not
de-ALTREP it.
That's what happens for integers, but indeed fails to happen for
such as.character(.)ed integers.
>From my eRum presentation (which took from the official ALTREP documentation
https://svn.r-project.org/R/branches/ALTREP/ALTREP.html ) :
> x <- 1:1e15
> object.size(x) # 8000'000'000'000'048 bytes : 8000 TBytes -- ok, not really
8000000000000048 bytes
> is.unsorted(x) # FALSE : i.e., R's *knows* it is sorted
[1] FALSE
> xs <- sort(x) #
> .Internal(inspect(x))
@80255f8 14 REALSXP g0c0 [NAM(7)] 1 :...
2019 Jan 23
1
Objectsize function visiting every element for alt-rep strings
...deed fails to happen for
>>> such as.character(.)ed integers.
>>>
>>> From my eRum presentation (which took from the official ALTREP
>> documentation
>>> https://svn.r-project.org/R/branches/ALTREP/ALTREP.html ) :
>>>
>>> > x <- 1:1e15
>>> > object.size(x) # 8000'000'000'000'048 bytes : 8000 TBytes -- ok, not
>> really
>>> 8000000000000048 bytes
>>> > is.unsorted(x) # FALSE : i.e., R's *knows* it is sorted
>>> [1] FALSE
>>> > xs <- sort(x...
2019 Jan 15
4
Objectsize function visiting every element for alt-rep strings
I have a toy alt-rep string package that generates randomly seeded strings.
example:
library(altstringisode)
x <- altrandomStrings(1e8)
head(x)
[1] "2PN0bdwPY7CA8M06zVKEkhHgZVgtV1" "5PN2qmWqBlQ9wQj99nsQzldVI5ZuGX" ... etc
object.size(1e8)
Object.size will call the set_altstring_Elt_method for every single
element, materializing (slowly) every element of the vector. This
2003 Feb 14
0
FW: [Fwd: Re: [S] Exact p-values]
...ect answer, you need to understand the following:
>
> > pbinom(1, 2, .5)
> [1] 0.75
>
> This is the binomial cumulative distribution function.
> *** pbinom(0, 2, .5) = 0.25
> *** pbinom(1, 2, .5) = 0.75 = 0.25 + 0.5
> *** pbinom(2, 2, .5) = 1
>
> However, pbinom(1e15, 2e15, .5) is a computational challenge. Standard
> numerical algorithms often fail in situations like this. The code
> should test for such cases and use more numerically stable
> "approximations" in place of the "exact" algorithms.
>
> The standard deviati...
2019 Jan 22
0
Objectsize function visiting every element for alt-rep strings
...ens for integers, but indeed fails to happen for
> > such as.character(.)ed integers.
> >
> > From my eRum presentation (which took from the official ALTREP
> documentation
> > https://svn.r-project.org/R/branches/ALTREP/ALTREP.html ) :
> >
> > > x <- 1:1e15
> > > object.size(x) # 8000'000'000'000'048 bytes : 8000 TBytes -- ok, not
> really
> > 8000000000000048 bytes
> > > is.unsorted(x) # FALSE : i.e., R's *knows* it is sorted
> > [1] FALSE
> > > xs <- sort(x) #
> > > .In...
2004 Jan 05
0
Codec Negotiation Does not seem to work as e xpected ?? Help Please !!
...terisk behaves like this, and I do think if asterisk send the
> message back to ATA with g729 in its message it should have worked fith
> nating bridging.
>
> WARNING[1248642112]: File channel.c, Line 1853
> (ast_channel_make_compatible): No path to translate from
> SIP/sip-a-1e15(256) to SIP/4097-96d8(4)
>
>
>
> Case 2 : ATA calling sip-b
> ===================
>
> ATA indicate that it can have following, codecs in SDP packet, in
following
> order
> ATA --> asterisk INVITE message
> g729
> ulaw
> alaw
> asterisk --> si...
2003 Feb 14
1
FW: [Fwd: Re: [S] Exact p-values]
Dear all
Just for fun, I have just downloaded the paper mentioned below and checked
it with R-1.6.1.
Everything is ok with exception of Table 2b, where I get always 1 instead of
0.5:
> pbinom(1e15,2e15,0.5)
[1] 1
Which value should be correct?
Best regards
Christian Stratowa
==============================================
Christian Stratowa, PhD
Boehringer Ingelheim Austria
Dept NCE Lead Discovery - Bioinformatics
Dr. Boehringergasse 5-11
A-1121 Vienna, Austria
Tel.: ++43-1-80105-2470
Fax:...