Re: Problems with multiplications of doubles and/or floats

From: John Harrison (john_andronicus_at_hotmail.com)
Date: 04/15/04


Date: Thu, 15 Apr 2004 14:36:29 +0100


"J.K. Becker" <jkbecker@becker.de> wrote in message
news:c5m0hb$vln$1@news1.zdv.uni-mainz.de...
> Ok, after a make clean -- makeg (again) this is what happens:
> dEdp gets a value in line 1, if the program continues to line 2 dEdp
> changes. So the calculation is done correctly, but the value changes for
> some reason. And most of the time it changes back to the right value
> after line 3...
>
> I have put the function into an older version of the program, it does
> more or less the same but dEdp does not change back to the original
> value after completing with line 3....
>
> I have no idea, but I wish I would get a Euro for every time I did make,
> I would be stinking rich by now!
>
>
> 1- dEdp = ( ( gvector.x / gvector.y ) + ( gvector.y / gvector.x ) ) /
lenP;
> 2- Fx = un.x * dEdp;
> 3- Fy = un.y * dEdp;
>
>
> Jens
>

I wonder if you are running into compiler problems because of the complexity
of the function. I'd try breaking the function into two pieces. Just a
hunch. Of course even you did this and it worked it wouldn't prove anything.

john



Relevant Pages

  • Re: What exactly is load average ?
    ... > running Solaris 9 using a UNIX system call. ... the number of processes sleeping at a non-interruptable priority. ... the actual calculation is slightly more complex to handle the ... They reason they sleep non-interruptably ...
    (comp.unix.solaris)
  • Re: What exactly is load average ?
    ... > running Solaris 9 using a UNIX system call. ... the number of processes sleeping at a non-interruptable priority. ... the actual calculation is slightly more complex to handle the ... They reason they sleep non-interruptably ...
    (comp.unix.programmer)
  • Re: GB2RS NEWS Sunday 19th July 2009
    ... Three levels were brought in for some reason. ... All practcal work was also required before completing each level. ... M3 exam and 2E exam and M0 exam in one weekend. ... M3 level including a sign-off on your training record by an instructor ...
    (uk.radio.amateur)
  • Re: consciousness
    ... result of some other subconscious calculation or unknown. ... The reason I would ... clock button quickly in order to stop my clock and start the opponent's. ... learned when to resign and when to play on. ...
    (uk.philosophy.humanism)
  • Re: Excel Manual Calculation
    ... Reason 1 - As obviously stated in my post. ... Reason 2 - I don't have the calculation set to manual, ... Reason 3 - I am not using Excel 2000. ...
    (microsoft.public.excel.worksheet.functions)