yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #05994
Re: computation of MomentBending
-
To:
yade-dev@xxxxxxxxxxxxxxxxxxx
-
From:
Janek Kozicki <janek_listy@xxxxx>
-
Date:
Tue, 26 Oct 2010 19:07:29 +0200
-
Face:
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEUBAQEtLS1KSkpRUVFXV1dYWFhjY2Nzc3N3d3eHh4eKioqdnZ24uLjLy8vc3NxVIagyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2AIVEzgS1fgQtQAAAjRJREFUOMtt1DFv00AUAOAzFQNbjigSyoQaRaBMhKgLUyKXpVNNeUpk9vyDqFJhQ1kiBuaqAwJCqvPtSLY7RlTn5+5IdnYkkt/AOyfxXVLe5vf53Z1875kd34tOEax8djmj6GyjhB5bxz50GdsVZr9fqRjZwAtKOJw5Wqs2MMZ16ALHsaDncF7xAHix1oEFHAB8f+pRjcO4gfZDykcYzbiucRolOLUJ6kjA0xtVt+A6TySlM0RajIpK6DzwKZ/nOYbF/gclHMo1ZOHYY/+Ha+AWuM+3oMS4eeqYzZ8FiCltgUqI8cd2wwAVpJk+8LWYjBtnJdQpHQqJMd4Oxt4bU9ESiFGc5hkqaH74asAX4iabP5I5gZ+qjgGlJCqZa3h3lxhoeVcSE1qLQC4sqKOK9MGW9E3izFqqHokoztLFEgXg31sbZEKnWi2T74A4NxfVQqlkjKtcAWD+zcArFEES01dR0E/nnV0IgugmDd/2L84sOAouRBBHEc7gtc8teDkRlE0iNQPo2w3Xhh/D4TCIQ4LRLoTvgwjj6RRgavdurxYGMaIuGOyAW/PpNlCcU9/93AHenAWYjPoAwa+G3e3to/MgFNTAEKvKDjzuCzHTnY3qqdXtx24VijzQfZ0yewZ5cwRFQaa+mIYr1uI0I76+3W4xhlvoVRwOA0Fdl64HlJnxP6T8YpX/Lga4Wv4A3ErrU5oTfN7Mu/llXMl8RXEPji/lQkN3H7qXqgC2By47EXeU/7PJ/wPxRKMnuZwIeAAAAABJRU5ErkJggg==
-
In-reply-to:
<1288112312.23440.35.camel@flux>
Václav Šmilauer said: (by the date of Tue, 26 Oct 2010 18:58:32 +0200)
> > so, for example a function that calculates axis angle, could do a
> > check if that argument to acos is higher that 1.0. And if yes - then
> > perform a normalization, to bring back down that quaternion to an
> > identity quaternion. This method will prevent quaternions from growing
> > bigger than indentity, but will not catch quaternions that get
> > smaller than identity - and that should be prevented too somehow (but
> > will not produce NaNs).
>
> I think it should be fixed in eigen, if that is a pure numerics problem.
> That's why we use libs, to not do everything ourselves.
yep, and so I'm glad that Bruno will contact them :)
> What happens if you re-normalize all quaternions before computing the
> product? (just to check; I am not suggesting to do it all the time)
Then a simple thing happens: your quaternions are always good!
Numerical error is a thing that we cannot get rid of, we must live
with it. And it accumulates.
--
Janek Kozicki http://janek.kozicki.pl/ |
Follow ups
References