Re: Why isn't math universal?

From: Thomas Magma (somewhere_at_overtherainbow.com)
Date: 09/01/04


Date: Wed, 01 Sep 2004 18:09:26 GMT

Well it's giving me the old -1.#IND00 at around sin(220000000.0). Shouldn't
the sin of any real number (double) equal something real? Java doesn't have
a problem with this.

"Hans-Bernhard Broeker" <broeker@physik.rwth-aachen.de> wrote in message
news:2pmh1jFmkd0fU2@uni-berlin.de...
> Thomas Magma <somewhere@overtherainbow.com> wrote:
>
> > I just wrote some DSP code in Java and ported it over to EVC for a PDA.
> > Apparently EVC has a problem with the sin() of large numbers. What's up
with
> > this?
>
> Quite impossible to tell, until you specify what "large" is supposed
> to mean, in this context. From the point of view of the sine
> function, an argument of 100 may already appear somewhat large, and an
> argument in anywhere outside the range of +/- 1/DBL_EPSILON will mean
> there's nothing left to salvage.
>
> > I need to sin() large numbers. Any suggestions?
>
> Double-check your needs. Carefully.
>
> --
> Hans-Bernhard Broeker (broeker@physik.rwth-aachen.de)
> Even if all the snow were burnt, ashes would remain.



Relevant Pages

  • Re: low power tv: your two cents ric take-two
    ... although I've run plenty of Java apps in the past. ... -then create an account, before dnloading or cranking up cvs. ... ..the Sin of Ignorance, ... Linux user# 44256 Sign up at: http://counter.li.org/ ...
    (Fedora)
  • Re: Viewing VRML files on Ubuntu
    ... I had to install Sun/Oracle Java to get it to ... although so far only for browser embedded view. ... and we have scores of people on the mail list seeing blank or black ... ..the Sin of Ignorance, ...
    (Ubuntu)
  • Re: [OT] wanting to play with full suite of Java EE under ubuntu
    ... book and see what ubuntu packages correspond to the different ... technologies, then try to set up and run simple examples of ... If you want to really get a java workout, ... ..the Sin of Ignorance, ...
    (Ubuntu)
  • Re: ubuntu bad press
    ... Ric Moore wrote: ... My point was that there are security fixes to Java 6 that require a mere ... install, I might as well hose it rEaL good. ... ..the Sin of Ignorance, ...
    (Ubuntu)
  • Why isnt math universal?
    ... I just wrote some DSP code in Java and ported it over to EVC for a PDA. ... Apparently EVC has a problem with the sin() of large numbers. ...
    (microsoft.public.pocketpc.developer)