Re: [R] Function of "matrix"

2020-10-22 Thread Bill Dunlap
> 10.1/0.1 was successfully calculated Note that 'computed as' is not the same as 'printed as'. Computations are done with 52 binary digits of precision and printing is, by default, done with 7 decimal digits of precision. See FAQ 7.31. > 101 - 10.1/0.1 [1] 1.421085e-14 >

Re: [R] Function of "matrix"

2020-10-22 Thread Patrick (Malone Quantitative)
(Neglected to cc the list--please reply-all to this version) What was the warning? I hazard a guess you've run into precision issues for binary representation, and the result of your division is not *exactly* 101. Pat On Thu, Oct 22, 2020 at 2:42 PM 奈良県奈良市 wrote: > > Dear R project team > > I

Re: [R] Function of "matrix"

2020-10-22 Thread Bert Gunter
1. Answers on this list are from volunteers who are not part of any R project team. We have no official status and what we say comes with no guarantees. 2. There is no such thing as a "matrix 'environment' ". 3. The answer to your question is "computer arithmetic." See FAQ 7.31. Someone may

[R] Function of "matrix"

2020-10-22 Thread 奈良県奈良市
Dear R project team I used the function of "matrix" as follows: matrix(c(1:3030), 10.1/0.1) However, in the function, matrix, 10.1/0.1 was regarded as 100 not as 101. Therefore, a warning message appeared. On the other hand, matrix(c(1:3030), 101) or matrix(c(1:3030), 10.1*10) was OK. Of course,