Commit 5f62859f authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

fix e=NaN

parent d4482e0b
...@@ -121,10 +121,10 @@ numbers.calculus.GaussNewton = function(v,n,r,dr,eps,w){ ...@@ -121,10 +121,10 @@ numbers.calculus.GaussNewton = function(v,n,r,dr,eps,w){
function sigma(v,n,r){ function sigma(v,n,r){
var sum = 0 var sum = 0
//var wsum = 0 var wsum = ws(v,n)
for(var i=0;i<n;i++){ for(var i=0;i<n;i++){
sum += wn(i,v)*r(i,v)*r(i,v) sum += wn(i,v,wsum)*r(i,v)*r(i,v)
//wsum += w(i,v) //wsum += w(i,v)
} }
......
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