Рабочий скрипт, которому должен подавать значения в функцию SolveHol, помогите расставить правильно;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
<head>
<TITLE>заглавие</TITLE>
</head>
<body>
<script>
var A= new Array(
new Array ('1','2','3'),
new Array ('2','5','1'),
new Array ('3','1','5'));
var B= new Array(
new Array ('0','0','0'),
new Array ('0','0','0'),
new Array ('0','0','0'));
var clearmatrix = new Array(
new Array ('0','0','0'),
new Array ('0','0','0'),
new Array ('0','0','0'));
var size=A.length-1;
var clearvector=new Array('0','0','0');
var b=new Array('7','-1','-1');
var c=new Array('0','0','0');
var z=new Array('0','0','0');
function Lin(x){
for (var dimension=0; dimension<size; dimension++){
for (var i=dimension; i<size;){
for(var j=dimension; j<size; j++){
if(A[dimension][dimension]!=0){
var count=A[dimension][j]/A[dimension][dimension];
A[i+1][j]=A[i+1][j]-A[i+1][dimension]*count;
}
else {
i++;
}
}
i++;
}
}
return A;
}
function Lt(x){
for(var i=0;i<=size;i++){
for(var j=0;j<=size;j++){
B[i][j]=A[j][i];
}
}
return B;
}
function vectorU(x){
var count, i=size;
c[i]=b[i]/A[i][i];
for(i=size-1; i>=0; i--){
count=0;
for(j=size; j>i; j--){
count=count+A[i][j]*c[j];
c[i]=(b[i]-count)/A[i][i];
}
}
return c;
}
function vectorL(x){
var count, i;
z[0]=c[0]/B[0][0];
for(i=1; i<=size; i++){
count=0;
for(j=0; j<i; j++){
count=count+B[i][j]*z[j];
z[i]=(c[i]-count)/B[i][i];
}
}
return z;
}
function SolveHol(A, b){
A=Lin();
B=Lt();
c=vectorU();
z=vectorL();
}
x=SolveHol(clearmatrix, clearvector);
</script>
</body>
</html>