Commit c72671e1 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

testing reiteration

parent 5f9cbdad
......@@ -247,7 +247,7 @@ numbers.calculus.GaussNewton_forHeading = function(v,n,r,dr,eps,w){
console.log(diff)
var max = Math.max(...diff)
var sscale = 0;
var sscale = 1;
if (max>STEP_SIZE_LIMIT){
console.log("LAT or LON EXCEEDED STEP SIZE")
......@@ -260,12 +260,12 @@ numbers.calculus.GaussNewton_forHeading = function(v,n,r,dr,eps,w){
sscale = STEP_SIZE_LIMIT/(v1[2]-v0[2]);
}
if (sscale!=0){
if (sscale!=1){
console.log("SCALE = "+sscale)
for(var i=0;i<n;i++){
v1[i] = v0[i] + diff[i]*sscale
v1[i] = v0[i]+sscale*(v1[i]-v0[i])
}
console.log("Corrected V1:")
......
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