Snapshot of Excel Calculator :


Web Calculator(Converted) Snap Shot :

   

SAMPLE CODE :

<!DOCTYPE html>

<html>

<body>


<div id="id01"></div>

<script>

var pole = [{"PoleData":"60mm","X":3,"Y":-60.15,"Avector":60.2247665,"Theta":-1.520962309,"ImpRot":0},

{"PoleData":"73mm","X":3,"Y":-66.5,"Avector":66.56763478,"Theta":-1.525714111,"ImpRot":0},

{"PoleData":"Single SAC","X":1.8,"Y":-129.07,"Avector":129.0825507,"Theta":-1.55685131,"ImpRot":0},

{"PoleData":"Dual SAC","X":1.7,"Y":-124.98,"Avector":124.9915613,"Theta":-1.557194989,"ImpRot":0},

{"PoleData":"RHS","X":40.5,"Y":-71.5,"Avector":82.17359673,"Theta":-1.05542378,"ImpRot":0},

{"PoleData":"RHS XHD","X":42.5,"Y":-72.5,"Avector":84.03868157,"Theta":-1.040580554,"ImpRot":0},

{"PoleData":"Universal","X":46.5,"Y":-60,"Avector":75.90948557,"Theta":-0.911486258,"ImpRot":0}];


var arm = [{"ArmData":"NONE","X":0,"Y":0,"Avector":0,"Theta":0,"ImpRot":0},

{"ArmData":"SSS","X":0.703,"Y":-70.671,"Avector":70.67449646,"Theta":-1.560849152,"ImpRot":-38.57},

{"ArmData":"SS","X":-13.4241,"Y":-114.0937,"Avector":114.8807157,"Theta":4.595268896,"ImpRot":-30},

{"ArmData":"S","X":-25.9574,"Y":-173.4722,"Avector":175.4035085,"Theta":4.563856655,"ImpRot":-30},

{"ArmData":"M","X":-28.4574,"Y":-220.8024,"Avector":222.6286672,"Theta":4.584213798,"ImpRot":-30},

{"ArmData":"L","X":-44.9574,"Y":-249.3812,"Avector":253.4011656,"Theta":4.534028892,"ImpRot":-30},

{"ArmData":"LL","X":-45.7871,"Y":-357.6063,"Avector":360.5256223,"Theta":4.585044114,"ImpRot":-22},

{"ArmData":"CS","X":0.22,"Y":-116.2,"Avector":116.2002083,"Theta":-1.568903042,"ImpRot":-28.1},

{"ArmData":"CM","X":-15.77,"Y":-160.35,"Avector":161.1236029,"Theta":4.614356866,"ImpRot":-27},

{"ArmData":"CL","X":-11.76,"Y":-193.13,"Avector":193.4877115,"Theta":4.651572444,"ImpRot":-29},

{"ArmData":"CLL","X":-28.1,"Y":-296.1,"Avector":297.4303616,"Theta":4.617771973,"ImpRot":-20}]; 


 


var tip = [{"TipData":"10mm","X":18,"Y":-17.7,"Avector":25.24460338,"Theta":-0.776995,"ImpRot":0},

{"TipData":"15mm","X":23,"Y":-17.7,"Avector":29.02223286,"Theta":-0.65590571,"ImpRot":0},

{"TipData":"20mm","X":28,"Y":-17.7,"Avector":33.12536792,"Theta":-0.563719271,"ImpRot":0},

{"TipData":"25mm","X":33,"Y":-22.2,"Avector":39.77235221,"Theta":-0.59218668,"ImpRot":0},

{"TipData":"Protected 10mm","X":18,"Y":-18,"Avector":25.45584412,"Theta":-0.785398163,"ImpRot":0},

{"TipData":"Protected 15mm","X":23,"Y":-18,"Avector":29.20616373,"Theta":-0.664046163,"ImpRot":0},

{"TipData":"HU200 Polytuff","X":33.5,"Y":-29,"Avector":44.30857705,"Theta":-0.713522194,"ImpRot":0},

{"TipData":"HXF8SS","X":129.1,"Y":-107.5,"Avector":167.9972024,"Theta":-0.694357208,"ImpRot":6},

{"TipData":"HXF8S","X":156.111,"Y":-162.975,"Avector":225.6800721,"Theta":-0.806906288,"ImpRot":6},

{"TipData":"HXF8M","X":181.046,"Y":-197.291,"Avector":267.7711575,"Theta":-0.828309715,"ImpRot":6},

{"TipData":"HXF8L","X":184.698,"Y":-234.445,"Avector":298.4590579,"Theta":-0.903532939,"ImpRot":6}];



function search_pole(nameKey, myArray){

    for (var i=0; i < myArray.length; i++) {

        if (myArray[i].PoleData === nameKey) {

            return myArray[i];

        }

    }

}

 

function calc_d12(c8,c9){

    return ((c8/2) + c9);

        }


function calc_d13e13(c13){

    

     for (var i=0; i < tip.length; i++) {

           if (tip[i].TipData === c13) {

            return tip[i];

        }  

    }

}

function calc_d14e14(c14){

    

     for (var i=0; i < arm.length; i++) {

           if (arm[i].ArmData === c14) {

            return arm[i];

        }  

    }

}

 

function calc_d15e15(c15){

    

     for (var i=0; i < cushion.length; i++) {

           if (cushion[i].CushionData === c15) {

            return cushion[i];

        }  

    }

}

function calc_d16e16(c16){

    

     for (var i=0; i < pole.length; i++) {

           if (pole[i].PoleData === c16) {

            return pole[i];

        }  

    }

}


function calc_e12(c7){

    

      return (c7 * -11)/630; 

    }

function calc_f13(e12){

    

      return e12; 

    }

function calc_f14(c13,f13){

     

     for (var i=0; i < tip.length; i++) {

           if (tip[i].TipData === c13) {

              

           return (f13 + ((tip[i].ImpRot)*11)/(630));

        }  

    } 

        

    }

function calc_f15(c14,f14){

     

     for (var i=0; i < arm.length; i++) {

           if (arm[i].ArmData === c14) {

              

           return (f14 + ((arm[i].ImpRot)*11)/(630));

        }  

    } 

        

    }

function calc_f16(c15,f15){

     

     for (var i=0; i < cushion.length; i++) {

          

           if (cushion[i].CushionData === c15) {

             var ImpRot_Radians = ((cushion[i].ImpRot)*11)/(630)

              return (f15 + ImpRot_Radians);

                     }  

    } 

        

    }

function calc_g12(f12,e12){

     

    return f12 +e12;

        

    }

function calc_g13(f13,e13){

     

    return f13 +e13;

        

    }

function calc_g14(f14,e14){

     

    return f14 +e14;

        

    }

function calc_g15(f14,e14){

     

    return f15 +e15;

        

    }

function calc_g16(e16,f16){

     

   

    return f16 +e16;

        

    }

function calc_h12(d12,g12){

     

    return d12*Math.cos(g12);

        

    }

function calc_h13(d13,g13){

     

    return d13*Math.cos(g13);

        

    }

function calc_h14(d14,g14){

     

    return d14*Math.cos(g14);

        

    }

function calc_h15(d15,g15){

     

    return d15*Math.cos(g15);

        

    }

function calc_h16(d16,g16){

     

    return d16*Math.cos(g16);

        

    }

 function calc_h17(h12,h13,h14,h15,h16){

     

    return (h12 + h13 + h14 + h15 + h16);

        

    }

function calc_I12(d12,g12){

     

    return d12*Math.sin(g12);

        

    }

function calc_I13(d13,g13){

     

    return d13*Math.sin(g13);

        

    }

function calc_I14(d14,g14){

     

    return d14*Math.sin(g14);

        

    }

function calc_I15(d15,g15){

     

    return d15*Math.sin(g15);

        

    }

function calc_I16(d16,g16){

     

    return d16*Math.sin(g16);

        

    }

 function calc_I17(I12,I13,I14,I15,I16){

     

    return (I12 + I13 + I14 + I15 + I16);

        

    }

 function calc_j12(h12){

     

    return h12;

        

    }

function calc_j13(j12,h13){

     

    return j12 + h13;

        

    }

function calc_j14(j13,h14){

     

    return j13 + h14;

        

    }

function calc_j15(j14,h15){

     

    return j14 + h15;

        

    }

function calc_j16(j15,h16){

     

    return j15 + h16;

        

    }

 function calc_k12(I12){

     

    return I12;

        

    }

function calc_k13(k12,I13){

     

    return k12 + I13;

        

    }

function calc_k14(k13,I14){

     

    return k13 + I14;

        

    }

function calc_k15(k14,I15){

     

    return k14 + I15;

        

    }

function calc_k16(k15,I16){

     

    return k15 + I16;

        

    }

function calc_l12(h12,i12)

{

return Math.sqrt(Math.pow(h12, 2) + Math.pow(i12, 2));

  

}

function calc_l13(h12,h13,i12,i13)

{

var hsum = h12 + h13;

var isum = i12 + i13;

return Math.sqrt(Math.pow(hsum, 2) + Math.pow(isum, 2));

  

}

function calc_l14(h12,h13,h14,i12,i13,i14)

{

var hsum = h12 + h13 + h14;

var isum = i12 + i13 + i14;

return Math.sqrt(Math.pow(hsum, 2) + Math.pow(isum, 2));

  

}

function calc_l15(h12,h13,h14,h15,i12,i13,i14,i15)

{

var hsum = h12 + h13 + h14 + h15;

var isum = i12 + i13 + i14 +i15;

return Math.sqrt(Math.pow(hsum, 2) + Math.pow(isum, 2));

  

}

function calc_l16(h12,h13,h14,h15,h16,i12,i13,i14,i15,i16)

{

var hsum = h12 + h13 + h14 + h15 + h16;

var isum = i12 + i13 + i14 +i15 + i16;

return Math.sqrt(Math.pow(hsum, 2) + Math.pow(isum, 2));

  

}


function calc_l17(h17,i17)

{

 

return Math.sqrt(Math.pow(h17, 2) + Math.pow(i17, 2));

  

}



function calc_m12(g12)

{

var deg = g12*630/11;

return deg;

  

}

function calc_m13(g13)

{

var deg = g13*630/11;

return deg;

  

}

function calc_m14(g14)

{

var deg = g14*630/11;

return deg;

  

}

function calc_m15(g15)

{

var deg = g15*630/11;

return deg;

  

}

function calc_m16(g16)

{

var deg = g16*630/11;

return deg;

  

}

function calc_m17(i17,h17)

{

var m17 = Math.atan(i17/h17);

return m17;

  

}

function calc_d19(h17)

{


return Math.abs(h17);

  

}

function calc_d20(i17)

{


return Math.abs(i17);

  

}

function calc_d21(l17)

{


return l17;

  

}

function calc_d22(h13,h14,h15,h16,i13,i14,i15,i16)

{

var hsum =   h13 + h14 + h15 + h16;

var isum =   i13 + i14 +i15 + i16;

return Math.sqrt(Math.pow(hsum, 2) + Math.pow(isum, 2));

  

}

var d12 = calc_d12(1500,16);

alert(d12);

var tempd13 = calc_d13e13("15mm");

var d13 = tempd13.Avector;

alert(d13);

var tempd14 = calc_d14e14("L");

var d14 = tempd14.Avector;

alert(d14);

var tempd15 = calc_d15e15("HVC-SS");

var d15 = tempd15.Avector;

alert(d15);

var tempd16 = calc_d16e16("73mm");

var d16 = tempd16.Avector;

alert(d16);

var e12 = calc_e12(15);

alert(e12);

var tempe13 = calc_d13e13("15mm");

var e13 = tempe13.Theta;

alert(e13);

var tempe14 = calc_d14e14("L");

var e14 = tempe14.Theta;

alert(e14);

var tempe15 = calc_d15e15("HVC-SS");

var e15 = tempe15.Theta;

alert(e15);

var tempe16 = calc_d16e16("73mm");

var e16 = tempe16.Theta;

alert(e16);

var f13 = calc_f13(e12);

alert(f13);

var f14 = calc_f14("15mm",f13);

alert(f14);

var f15 = calc_f15("L",f14);

alert(f15);

var f16 = calc_f16("HVC-SS",f15);

alert (f16);

var g12 = calc_g12("",e12);

alert(g12);

var g13 = calc_g13(e13,f13);

alert(g13);

var g14 = calc_g14(e14,f14);

alert(g14);

var g15 = calc_g15(e15,f15);

alert(g15);

var g16 = calc_g16(e16,f16);

alert(g16);

var h12 = calc_h12(d12,g12);

alert(h12);

var h13 = calc_h13(d13,g13);

alert(h13);

var h14 = calc_h14(d14,g14);

alert(h14);

var h15 = calc_h15(d15,g15);

alert(h15);

var h16 = calc_h16(d16,g16);

alert(h16);

var h17 = calc_h17(h12,h13,h14,h15,h16);

alert(h17);


var I12 = calc_I12(d12,g12);

alert(I12);

var I13 = calc_I13(d13,g13);

alert(I13);

var I14 = calc_I14(d14,g14);

alert(I14);

var I15 = calc_I15(d15,g15);

alert(I15);

var I16 = calc_I16(d16,g16);

alert(I16);

var I17 = calc_I17(I12,I13,I14,I15,I16);

alert(I17);

var j12= calc_j12(h12)

alert(j12);

var j13 = calc_j13(j12,h13)

alert(j13);

var j14 = calc_j14(j13,h14)

alert(j14);    

var j15 = calc_j15(j14,h15)

alert(j15);

var j16 = calc_j16(j15,h16)

alert(j16);     

var k12= calc_k12(I12)

alert(k12);

var k13 = calc_k13(k12,I13)

alert(k13);

var k14 = calc_k14(k13,I14)

alert(k14);    

var k15 = calc_k15(k14,I15)

alert(k15);

var k16 = calc_k16(k15,I16)

alert(k16);

var l12 = calc_l12(h12,I12);

alert(l12);  

var l13 = calc_l13(h12,h13,I12,I13);

alert(l13);

var l14 = calc_l14(h12,h13,h14,I12,I13,I14);

alert(l14);

var l15 = calc_l15(h12,h13,h14,h15,I12,I13,I14,I15);

alert(l15);

var l16 = calc_l16(h12,h13,h14,h15,h16,I12,I13,I14,I15,I16);

alert(l16);

var l17 = calc_l17(h17,I17);

alert(l17);

var m12 = calc_m12(g12);

alert(m12);

var m13 = calc_m13(g13);

alert(m13);

var m14 = calc_m14(g14);

alert(m14);

var m15 = calc_m15(g15);

alert(m15);

var m16 = calc_m16(g16);

alert(m16);

var m17 = calc_m17(I17,h17);

alert(m17);

var d19 = calc_d19(h17);

alert(d19);

var d20 = calc_d20(I17);

alert(d20);

var d21 = calc_d21(l17);

alert(d21);

var d22 = calc_d22(h13,h14,h15,h16,I13,I14,I15,I16);

alert(d22);

</script>


</body>

</html>

I BUILT MY SITE FOR FREE USING