Type Here to Get Search Results !

Welcome To FreeSiteTools

Empirical (68-95-99.7) Rule Calculator Tool Code

 


<script LANGUAGE="JavaScript" >

function isNum(arg)

{

var args = arg;

var fad = true;

if (args == "" || args == null || args.length == 0)

{

return false;

}

args = args.toString();var len=args.length;

for (var i = 0;i<len;i++)

{

if (args.substring(i,i+1) < "0" || args.substring(i, i+1) > "9")

{

if(args.substring(i, i+1) == ".")

{

if(fad == true)

fad = false;

else

return false;

}

else

{

return false;

}

}

}

return true;

}

function calc()

{var sds = document.getElementById('dum');

if(sds != null)

{

var vva = document.getElementById("a11").value;

vva = vva.replace(" ","");

var resul;

var bb = true;

if(vva != "")

{

resul = vva.split(",");

}

for(var v=0; v<resul.length; v++)

{

var d = resul[v];

if(isNaN(d) || d == "")

{

alert("The number \""+d+"\" is not a valid one");

var bb = false;

break;

}

}

if(bb == true)

{

var tot = resul.length;

var mean=0;

document.getElementById("r1").value = tot;

for(var c=0; c<tot; c++)

{

mean = mean+parseFloat(resul[c]);

}

mean = mean/tot;

var mean1 =

mean.toFixed(1);

document.getElementById("r2").value= mean1;

var variance=0;

var b;

var varian;

for(var a=0; a<tot; a++)

{

variance = variance+Math.pow((parseFloat(resul[a])-mean),2);

b = tot-1;varian = variance/b;

}

var sd=0;

{

sd = Math.sqrt(varian);

var sd1 =sd.toFixed(1);

}

document.getElementById("r4").value = sd1;var f=(+mean)+(+sd1);var f=f.toFixed(1);var first1=mean-sd1;var first1=first1.toFixed(1);var m=sd1*2;var second=mean+m;var second=second.toFixed(1);var second1=mean-m;var second1=second1.toFixed(1);var m1=sd1*3;var third=mean+m1;var third=third.toFixed(1);var third1=mean-m1;var third1=third1.toFixed(1);

var val1 =" and " +f;

var rval5="68 % of the values fall between "+first1+val1;

var rval6="68 % of the values fall between "+first1+val1;

var rval7="68 % of the values fall between "+first1+val1;

document.getElementById("r5").value = rval5;

document.getElementById("r6").value = rval6;

document.getElementById("r7").value = rval7;

}

}

}

function re()

{

document.getElementById("a11").value="";

document.getElementById("r1").value="";

document.getElementById("r2").value="";

document.getElementById("r4").value="";

document.getElementById("r5").value="";

document.getElementById("r6").value="";

document.getElementById("r7").value="";

}

function chk(){

var sds = document.getElementById('dum');

if(sds == null){alert("You are using a free package.\n You are not allowed to remove the tag.\n");

document.getElementById("calc").style.visibility="hidden";

}

}

window.onload=chk;

</script>

<style>.frms

{

margin:0 auto;

padding:10px;

border:#ddd 5px solid;

border-radius:.3em;

-moz-border-radius:.3em;

-webkit-border-radius:.3em;

-o-border-radius:.3em;

font-family:Tahoma, Geneva, sans-serif;

color:#333;

font-size:.9em;

line-height:1.2em;

}

.frms input[type="text"],[type="password"],[type="file"],textarea,select

{

width:99%;

background:#fff;

border:#ddd 5px solid;

border-radius:.35em;

-moz-border-radius:.35em;

-webkit-border-radius:.35em;

-o-border-radius:.35em;

padding:0 .5%;

margin-top:5px;

margin-bottom:15px;

height:45px;

}

textarea

{

width:99%;

height:auto;

background:#fff;

border:#ddd 5px solid;

border-radius:.35em;

-moz-border-radius:.35em;

-webkit-border-radius:.35em;

-o-border-radius:.35em;

padding:1% .5%;

margin-top:5px;

margin-bottom:15px;

}

.frms input:hover,textarea:hover,select:hover

{

box-shadow:#dae1e5 0px 0px 5px;

-moz-box-shadow:#dae1e5 0px 0px 5px;

-webkit-box-shadow:#dae1e5 0px 0px 5px;

-o-box-shadow:#dae1e5 0px 0px 5px;

}

.frms input:focus,textarea:focus,select:focus

{

-webkit-box-shadow: inset 7px 4px 7px -7px rgba(0,0,0,0.42);

-moz-box-shadow: inset 7px 4px 7px -7px rgba(0,0,0,0.42);

box-shadow: inset 7px 4px 7px -7px rgba(0,0,0,0.42);

border:#9d9983 1px solid;

}

.frms input[type="file"]

{

width:99.6%;

padding:2px .2%;

}

.frms input[type="submit"],input[type="reset"],input[type="button"],button,.yellow_button,.blue_button

{

padding:7px 14px;

font-weight:bold;

color:#fff;

cursor:pointer;

border-radius:.3em;

-moz-border-radius:.2em;

-webkit-border-radius:.2em;

-o-border-radius:.2em;

margin:10px 0;

border:none;

}

.frms input[type="submit"]

{

background:#ff0000;

border-bottom:#629826 3px solid;

text-shadow:#396e12 1px 1px 0px;

}

.frms input[type="reset"]

{

background:#ee765d;

border-bottom:#d95e44 3px solid;

text-shadow:#8c3736 1px 1px 0px;

}

input[type="button"],button,.blue_button

{

background:#468cd2;

border-bottom:#3277bc 3px solid;

text-shadow:#214d73 1px 1px 0px;

}

</style><div class="frms" id='calc'>

<h2>Empirical or 68-95-99.7 Rule Calculation

</h2>

<div class='clear'></div>

<form name=first>

<div id="dispCalcConts"><div class='group clearfix'>

<label>Enter all the numbers separated by comma</label>

<textarea id=a11 rows=2 cols=40 ></textarea>

<label style='color:#908C8C'>[E.g: 13,23,12,44,55]</label>

</div>

<div align=center><input type=button value=calculate onclick=calc()><span style="font-size: 20px;color: #dadada;" id="dumdiv">

<a href="https://www.emexee.com" id="dum" style="text-decoration:none;color: #dadada;"></a></span> <input type=reset value=Reset onclick=re()></div>

<div class='result'>

<div class='group clearfix'>

<label>Total Numbers:</label>

<input id=r1 type=text readonly >

</div>

<div class='group clearfix'>

<label>Mean (Average):</label>

<input id=r2 type=text readonly>

</div>

<div class='group clearfix'>

<label>Standard Deviation:</label>

<input id=r4 type=text readonly>

</div>

<div align=center><h4>Empirical Rule</h4></div>

<div align=center><textarea id=r5 rows=2 cols=30 readonly></textarea></div>

<div align=center><textarea id=r6 rows=2 cols=30 readonly></textarea></div>

<div align=center><textarea id=r7 rows=2 cols=30 readonly></textarea></div></div>

</div>

</form></div>




How To Use These Code ?

Just copy these above following code and paste in your blogger or wordpress website post in HTML view.


S.NO All SEO And Other Tools Name Download Buttons Demo Buttons
1. Instagram Hashtag Finder Tool
2. Fancy Text Generator Tool
3. Logo & Favicon Maker Tool
4. iFrame Generator Tool
5. Age Calculator Tool
6. Hex Color Picker Tool
7. Youtube Video Downloader Tool
8. Meta Tag Generator Tool
9. QR Code Maker Tool
10. Privacy & Policy Generator Tool
11. Terms & Conditions Generator Tool
12. About Us Page Generator Tool
13. Youtube Thumbnail Downloader Tool
14. HTML To XML Converter Tool
15. Gradient Color Code Picker Tool

Click Here To Get More Tools