Re: computation of square root & reciprocal calculation



And some more details:
you need to calculate the reciprocal of the square root "between 0 and
infinity".

- But divide by the zero is forbidden,
so the argument must be great than 0;
what the limit?

- what do you mean under "infinity": do you use floating point or fixed
point number representation?

- what the accuracy or word-length do you need?

http://baykov2000.chat.ru

.



Relevant Pages

  • Re: Recent resolution of issues
    ... You make a fatal flaw by assuming that the square root is positive, ... power is larger than 16 to that power. ... zero and negative zero? ... and infinity, ...
    (sci.math)
  • Re: Avoiding NaNs in WRITE()
    ... check for a divide by zero or a negative argument for the square root. ... In the DEC VAX compiler, you could write your own fortran routine to ...
    (comp.lang.fortran)
  • Re: Recent resolution of issues
    ... >1) You make a fatal flaw by assuming that the square root is positive, ... Does your choice follow from the axioms? ... >zero and negative zero? ... >between infinity and negative infinity? ...
    (sci.math)
  • Re: Checking for Undefined [was Re: Ada vs Fortran for scientific applications]
    ... infinity (e.g., divide a non-zero number by zero) and plus or minus ... fyi, Matlab supports NAN's, and it has Inf and -Inf ...
    (comp.lang.fortran)
  • Re: zero and infinity
    ... > Infinity is not a number. ... > You cannot divide by something that is not a number. ... Where on earth did you get the strange idea that zero is some sort ... Zero / zero can only equal zero, ...
    (sci.physics.relativity)