search for: 61224l

Displaying 4 results from an estimated 4 matches for "61224l".

Did you mean: 61224
2018 May 09
0
NAs produced by integer overflow, but only some time ...
a) Numeric values may be either integers (signed 32 bit) or double precision (53 bit mantissa). b) Double precision constants are numeric with no decoration (e.g. 61224). Integer constants have an L (e.g. 61224L). c) 61224*61224 > 2^31-1 so that answer cannot fit into an integer. d) Exponentiation is a floating point operation so the result of 61224L^2L is a floating point answer that CAN fit into the 53bit mantissa of a double precision value, so no overflow occurs. e) Defining a function like yules...
2018 May 09
2
NAs produced by integer overflow, but only some time ...
...duce an integer overflow, but m1^2 does not? As for Jeff's 'response': > a) Numeric values may be either integers (signed 32 bit) or double precision (53 bit mantissa). > b) Double precision constants are numeric with no decoration (e.g. 61224). Integer constants have an L (e.g. 61224L). > c) 61224*61224 > 2^31-1 so that answer cannot fit into an integer. > d) Exponentiation is a floating point operation so the result of 61224L^2L is a floating point answer that CAN fit into the 53bit mantissa of a double precision value, so no overflow occurs. Yes, that's all great...
2018 May 09
3
NAs produced by integer overflow, but only some time ...
I have problem with integer overflow that I cannot understand. I have a character vector curr.lemmas with the following properties: length(curr.lemmas) # 61224 length(unique(curr.lemmas)) # 2652 That vector is the input to the following function: yules.k1 <- function(input) { m1 <- length(input); temp <- table(table(input)) m2 <- sum("*"(temp,
2018 May 09
1
NAs produced by integer overflow, but only some time ...
...12:04 AM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote: > a) Numeric values may be either integers (signed 32 bit) or double > precision (53 bit mantissa). > > b) Double precision constants are numeric with no decoration (e.g. 61224). > Integer constants have an L (e.g. 61224L). > > c) 61224*61224 > 2^31-1 so that answer cannot fit into an integer. > > d) Exponentiation is a floating point operation so the result of 61224L^2L > is a floating point answer that CAN fit into the 53bit mantissa of a double > precision value, so no overflow occurs. > &...