... Ward <zaxfuuq@gmail.com> wrote: I think this version gives as much width on epsilon nought as double precision can do. I can't believe I got stung with a single-precision pi....3.14159265358979324E+00 2. The only use of ** in your program was c**2.0_dp so why not write c**2 instead? -- John Harper, School of Mathematics, Statistics and Computer Science, Victoria University, PO...
... type of the other before the calculation. Some people prefer to make that conversion explicit. (I'm not hard over on the point myself; I'm just describing it rather than advocating it). But ...**integer is a very different (and far more efficient) operation that real**real. The integer will *NOT* get quietly converted to a real. In fact, rather the opposite. Some compilers will convert forms...
...mcs.vuw.ac.nz (John Harper) wrote: and then lots of calculations showing not very many correct figures. With only 7 significant figures quoted in E0 you can't ...0.0000000000088541878176204 12345678.0000000000012345678911234 12345678.1234567891123456789212345 I think this version gives as much width on epsilon nought as double precision can do. I can't believe I got stung with a single...
...*PIE) U0=(1E-7)*4*PIE are approximations. Not quite. You don't say what units you are using, ... (in a vacuum). Since they are all defined quantities, not measured, their knowledge is considered "exact". The irrationality of mu nought and epsilon nought isn't a problem, it simply is. I....) It doesn't help that it's pronuounced mu nought and looks like u zero. I think Jan has the...
... that matter an integer) number of metres per second, which Paul gave. c is NOT a rational number. Rational numbers are dimensionless. Remember the spacecraft that crashed on Mars because... I would agree with you, except that this is the Fortran newsgroup where variables do not have units. The quantity stored in the variable is the desired quantity divided by the appropriate...
...for that matter an integer) number of metres per second, which Paul gave. c is NOT a rational number. Rational numbers are dimensionless. Remember the spacecraft that crashed on Mars because ...... I would agree with you, except that this is the Fortran newsgroup where variables do not have units. The quantity stored in the variable is the desired quantity divided by the appropriate ...
...-9)/(36*PIE) U0=(1E-7)*4*PIE are approximations. Not quite. You don't say what units you are using, but ...value (in a vacuum). Since they are all defined quantities, not measured, their knowledge is considered "exact". I have another problem ...) number of metres per second, which Paul gave. c is NOT a rational number. Rational numbers are dimensionless. Remember the spacecraft ...
...be an approximation or E0=(1E-9)/(36*PIE) U0=(1E-7)*4*PIE are approximations. Not quite. You don't say what units you are using, but in SI units both C and..." refers to the uncertainty of the value (in a vacuum). Since they are all defined quantities, not measured, their knowledge is considered "exact". cheers, paulv -- Paul van Delst Ride lots. CIMSS @ ...
... at tens of thousands of meters per second less than 3 x 10**8, this forces either C =(E0*U0)**(-.5) to be an approximation or E0=(1E-9)/(36*PIE) U0=(1E-7)*4*PIE are approximations. Not quite. You don't say what units you are using, but in SI units both C and U0 above are both exact, E0 is an approximation. The SI definitions give the units of U0 as N/A**2 = kg m s...
...c at tens of thousands of meters per second less than 3 x 10**8, this forces either C =(E0*U0)**(-.5) to be an approximation or E0=(1E-9)/(36*PIE) U0=(1E-7)*4*PIE are approximations. Not quite. You don't say what units you are using, but in SI units both C and U0 above are both exact, E0 is an approximation. The SI definitions give the units of U0 as N/A**2 = kg ...