Re: Problems with multiplications of doubles and/or floats
From: John Harrison (john_andronicus_at_hotmail.com)
Date: 04/15/04
- Next message: John Harrison: "Re: What's wrong with this function"
- Previous message: Ioannis Vranos: "Re: Is it standard and practical to use long long types?"
- In reply to: J.K. Becker: "Re: Problems with multiplications of doubles and/or floats"
- Next in thread: Matt: "Re: Problems with multiplications of doubles and/or floats"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: John Harrison: "Re: What's wrong with this function"
- Previous message: Ioannis Vranos: "Re: Is it standard and practical to use long long types?"
- In reply to: J.K. Becker: "Re: Problems with multiplications of doubles and/or floats"
- Next in thread: Matt: "Re: Problems with multiplications of doubles and/or floats"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|