Commit 7af5d8cb authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

tested E^2 calced via eigen vs short formula

parent ae181bee
......@@ -166,7 +166,7 @@ function x3dom_delta_markers(){
E = E.multComponents(new x3dom.fields.SFVec3f(1/es_a, 1/es_b, 1/es_c));
console.log("E^2 from eigen: " +E.length()*E.length());
// scale the result ellipsoid so it with touch another marker
// and it did - it only tests that the scale is correct
......@@ -177,6 +177,15 @@ function x3dom_delta_markers(){
Oz: RES.e2().multiply(E.length()*es_c)
// alternative calculations where E^2 = delta^T x C^-1 x delta
var delta = e1_c.subtract(e2_c);
var Ci = C.inverse();
var Ci_x_delta = Ci.multMatrixVec(delta);
var E2 =;
console.log("E^2 from d^T x C^-1 x d: "+E2);
return 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment