Re: Cube root results in integer only...



Hi,

In addition to Elliot's comment, you also have an incorrect argument type for
the ACOS function. It should be ACOS(-1.0). Some compilers may forgive this
mistake, others not.

Thanks, I changed that as well - although it has been accepted. The
Aspen Fortran compiler seems to be a bit choosy on what it accepts or
not...

All the best,

Chris
.



Relevant Pages

  • Re: Operator Precence Issue/Question
    ... the bottom two bits of P8 were set, ... There is a mistake in this code in that equality is higher precedence ... Some compilers and some "lint" programs will issue ... compiler, (since as you say, it's perfectly valid C). ...
    (comp.lang.c)
  • Re: c = inverse(sqrt(epsilon nought *mu nought))
    ... That has nothing at all to do with the objections that some people ... have to mixed-mode calculations. ... It is a mistake to write 2.0 as an exponent when you mean to square ... some compilers will fix that mistake for you). ...
    (comp.lang.fortran)
  • Re: how to organize source code for a complete software? Thanks!
    ... |Oops, I have seen *.ada somewhere, but I don't recall it...| ... That is not a mistake. ... There are compilers which support *.ada. ...
    (comp.lang.ada)
  • Re: high-precision type
    ... and some compilers will abort on compilation. ... which is always a mistake). ... Prev by Date: ...
    (comp.lang.fortran)