Thursday, 1 October 2015

SCIENTIFIC NOTATION CALCULATOR CODE

SCIENTIFIC NOTATION CALCULATOR CODE

-----------------------------------------------------------------------------------------------------------------
COPY AND PASTE BELOW CODE IN POST HTML SECTION
-----------------------------------------------------------------------------------------------------------------

<html>
<head>
<style type="text/css">
.CalcTable {
padding: 4px 6px;
border: solid #ddd 1px;
border-collapse: collapse
}
.CalcTitleCell {
background-color: transparent;
color: #1d487e;
font-family: Verdana, Arial, sans-serif;
font-size: 130%;
font-weight: bold;
text-align: center;
height: 30px
}
.CalcInstructCell {
padding: 5px;
border-bottom: solid #ddd 1px
}
.CalcRowTitleCell {
background-color: #ccc;
color: #1d487e;
font-family: Verdana, Arial, sans-serif;
font-size: 85%;
font-weight: bold;
text-align: left;
border: solid #ddd 1px
}
.CalcColCell {
background-color: #1d487e;
color: #fff;
font-family: Verdana, Arial, sans-serif;
font-size: 100%;
font-weight: bold;
text-align: center;
border: solid #ddd 1px
}
.CalcColCellLeft {
background-color: #1d487e;
color: #fff;
font-family: Verdana, Arial, sans-serif;
font-size: 100%;
font-weight: bold;
text-align: left;
padding-left: 5px;
border: solid #ddd 1px
}
.CalcColCellRight {
background-color: #1d487e;
color: #fff;
font-family: Verdana, Arial, sans-serif;
font-size: 100%;
font-weight: bold;
text-align: right;
border: solid #ddd 1px
}
.CalcRowOdd {
background-color: #eee
}
.CalcRowEven {
background-color: #fff
}
.CalcInDescCell {
padding-left: 5px;
padding-right: 5px
}
.CalcOutDescCell {
text-align: left
}
.CalcInFldCell {
text-align: right;
padding-right: 5px;
font-size: 8pt
}
.CalcOutFldCell {
text-align: right;
padding-right: 5px;
border-left: solid #ddd 1px;
border-right: solid #ddd 1px;
font-size: 8pt
}
.CalcInFld {
font-size: 8pt
}
.CalcInFldFix {
font-size: 8pt
}
.CalcSelectFix {
font-size: 8pt
}
.CalcOutFldOddFix {
border: medium none;
background-color: #eee;
font-weight: normal;
text-align: right;
font-size: 8pt
}
.CalcOutFldEvenFix {
border: medium none;
background-color: #fff;
font-weight: normal;
text-align: right;
font-size: 8pt
}
.CalcOutFldOdd {
border: medium none;
background-color: #eee;
font-weight: normal;
text-align: right;
font-size: 8pt
}
.CalcOutFldEven {
border: medium none;
background-color: #fff;
font-weight: normal;
text-align: right;
font-size: 8pt
}
.CalcOutFldBoldOdd {
border: medium none;
background-color: #eee;
font-weight: bold;
text-align: right;
font-size: 8pt
}
.CalcOutFldBoldEven {
border: medium none;
background-color: #fff;
font-weight: bold;
text-align: right;
font-size: 8pt
}
.CalcButtonCell {
text-align: center;
border: solid #ddd 1px
}
.CalcButton {}.CalcSummaryCell {
padding-left: 5px;
padding-right: 5px;
background-color: #fff;
border: solid #ddd 1px
}
.ChartTable {
border-collapse: collapse
}
.ChartBody {}.ChartColHead1 {
background-color: #1d487e;
color: #fff;
font-family: Verdana, Arial, sans-serif;
font-size: 100%;
font-weight: bold;
text-align: center;
border: solid #ccc 1px
}
.ChartColHead1Small {
background-color: #1d487e;
color: #fff;
font-family: Arial, sans-serif;
font-size: 80%;
font-weight: bold;
text-align: center;
border: solid #ccc 1px
}
.ChartColHead2 {
background-color: #ccc;
color: #1d487e;
font-family: Verdana, Arial, sans-serif;
font-size: 85%;
font-weight: bold;
text-align: center;
border: solid #ddd 1px
}
.ChartRowOdd {
background-color: #eee
}
.ChartRowEven {
background-color: #fff
}
.ChartTextCell {
text-align: center;
padding-left: 2px;
padding-right: 2px;
border: solid #ddd 1px
}
.ChartTextCellLeft {
text-align: left;
padding-left: 2px;
padding-right: 2px;
border: solid #ddd 1px
}
.ChartNumCell {
text-align: right;
padding-left: 2px;
padding-right: 2px;
border: solid #ddd 1px
}
.ChartNumCellSmall {
font-family: Arial, sans-serif;
font-size: 85%;
text-align: right;
padding-left: 2px;
padding-right: 2px;
border: solid #ddd 1px
}
.ChartSubCell {
text-align: right;
border-top: solid #000 2px;
border-left: solid #ddd 1px;
border-right: solid #ddd 1px;
font-weight: bold;
background-color: #ccc;
padding-left: 4px;
padding-right: 2px
}
.ChartTotCell {
text-align: right;
border-top: double #000 3px;
border-bottom: double #000 3px;
border-left: solid #ddd 1px;
border-right: solid #ddd 1px;
font-weight: bold;
background-color: #ccc;
padding-left: 4px;
padding-right: 2px
}
#dhtmltooltip {
position: absolute;
left: -300px;
width: 150px;
border: 1px solid #000;
padding: 2px;
background-color: #ffffe0;
visibility: hidden;
z-index: 100;
filter: progid: DXImageTransform.Microsoft.Shadow(color=gray, direction=135)
}
#dhtmlpointer {
position: absolute;
left: -300px;
z-index: 101;
visibility: hidden
}
.div_help {
font-family: arial, verdana, helvetica, sans-serif;
font-size: small;
text-align: left;
padding: 10px
}
.SideCalcTitleCell {
font-size: 100%;
background-color: #000;
font-weight: bold;
color: #fff
}
.SideCalcResult {
text-align: right;
width: 94%;
background-color: #eee;
border: solid #000 1px;
font-family: arial, sans-serif;
font-size: 11pt;
color: #000;
padding-right: 5px
}
.SideCalcNum {
font-weight: bold;
width: 30px
}
.SideCalcSign {
font-weight: bold;
color: #00f;
width: 30px
}
.SideCalcClr {
font-weight: bold;
width: 30px;
color: red
}
.SideCalcClrTape {
font-weight: bold;
width: 94%;
color: #000
}
.SideCalcTapeCell {
text-align: center;
background-color: #ccc;
border-top: solid #ccc 1px;
border-left: solid #ccc 1px;
border-right: solid #ccc 1px;
border-bottom: dashed #000 1px;
font-family: courier, arial, sans-serif;
font-size: 10pt;
color: #000;
padding-right: 0px;
padding-left: 0px
}
.BelowCalcTable {
border-collapse: collapse
}
.BelowCalcAdCell {}.BelowCalcColHead {
background-color: #ccc;
color: #1d487e;
font-family: Verdana, Arial, sans-serif;
font-size: 85%;
font-weight: bold;
text-align: center;
border: solid #ccc 1px
}
.BelowCalcImgHead {
background-color: #ccc;
text-align: center;
border: solid #ccc 1px
}
.BelowCalcLinkCell {
text-align: left;
padding-left: 2px;
padding-right: 2px;
border: solid #ddd 1px
}
.sppTable {
width: 300px;
border-collapse: collapse
}
.sppRow {
background-color: #ddd
}
.sppColHead {
background-color: #fff;
color: #1d487e;
font-family: Verdana, Arial, sans-serif;
font-size: 85%;
font-weight: bold;
text-align: center;
width: 240px;
border-left: solid #8f8fb3 1px;
border-top: solid #8f8fb3 1px
}
.sppImgHead {
background-color: #fff;
text-align: center;
width: 60px;
border-right: solid #8f8fb3 1px;
border-top: solid #8f8fb3 1px
}
.sppLinkCell {
font-size: 85%;
text-align: left;
padding-left: 2px;
padding-right: 2px;
border-left: solid #8f8fb3 1px;
border-bottom: solid #8f8fb3 1px;
border-right: solid #8f8fb3 1px
}
.fb_like_button {
border: 1px dotted #000;
background-color: #eee;
padding: 10px;
width: 320px;
float: right
}
.blogItItem {
margin: 18px 0;
padding: 0 12px;
border: 1px solid #ccc;
background: #eee;
box-shadow: 4px 4px 4px #ccc
}
.blogItItem h6 {
font-style: normal;
font-weight: normal;
font-size: 80%
}
.leftnav_heading {
text-align: center
}
.leftnav_heading a {
font-family: Arial, Helvetica, sans-serif;
font-size: 15px;
text-align: left;
line-height: 14px;
background-image: url();
color: #333;
text-decoration: none;
width: 169px;
height: 41px;
display: block;
font-weight: bold;
margin-top: 18px
}
.leftnav_heading a:hover {
background-image: url()
}
.leftnav_heading span {
display: block;
padding: 7px
}
.texttop {
font-size: 15px;
line-height: 14px;
color: #333;
text-shadow: 0px 0px 2px #fff;
margin-bottom: 10px
}
.textbottom {
color: #333;
font-size: 15px;
text-shadow: 0px 0px 2px #fff
}
#mobileBtnDiv {
display: none
}
@media only screen and (max-device-width: 640px) {
#mobileBtnDiv {
display: block;
width: 100%;
text-align: center;
padding: 10px
}
#mobileBtn {
display: inline-block;
text-align: center;
width: 50%;
font-size: 2em;
line-height: 2em;
background-color: #0f5378;
color: #fff;
text-decoration: none;
border-radius: 10px;
border: 1px solid #fff
}
#mobileBtn:hover {
background-color: #4cc2ce;
color: #087197
}
}
</style>

<script>
var mod_pagespeed_sBNIvg6Li0 = "var ops_ar=[\"Addition\",\"Subtraction\",\"Multiplication\",\"Division\"];function convert_sn(d,e){var d_str=d.toString();var e_abs=Math.abs(e);var num_len=d_str.length;var l_side=\"\";var r_side=\"\";if(d_str.indexOf(\".\")>-1){var d_ar=d_str.split(\".\");l_side=d_ar[0];if(l_side==\"0\"){l_side=\"\";}\nr_side=d_ar[1];}else{l_side=d_str;}\nvar l_side_len=l_side.length;var r_side_len=r_side.length;var comb_sides=l_side+\"\"+r_side;var comb_sides_len=comb_sides.length;var both_sides=\"\";var num_places=0;var num_len=r_side_len+1;if(e==0){both_sides=d;}else\nif(e>0){if(e_abs>=r_side_len){num_len=e_abs-r_side_len+r_side_len+1;num_places=num_len+1;}else{num_places=Number(e_abs)+Number(1);}\nfor(var i=1;i<=num_len;i++){if(i>comb_sides_len){both_sides+=\"0\";}else{both_sides+=comb_sides.substring(i-1,i);}\nif(i==num_places){both_sides+=\".\";}}}else{num_len=e_abs+r_side_len;num_places=num_len+1;for(var i=1;i<=num_len;i++){if(i>comb_sides_len){both_sides=\"0\"+both_sides;}else{both_sides+=comb_sides.substring(i-1,i);}}\nboth_sides=\"0.\"+both_sides;}\nreturn both_sides;}\nfunction convert_num(d){var in_num=d.toString();var sign=\"\";if(in_num.substring(0,1)==\"-\"){sign=\"-\";in_num=in_num.substring(1,in_num.length);}\nvar num_len=in_num.length;var l_side=\"\";var r_side=\"\";if(in_num.indexOf(\".\")>-1){var num_ar=in_num.split(\".\");l_side=num_ar[0];if(l_side==\"0\"){l_side=\"\";}\nr_side=num_ar[1];}else{l_side=in_num;}\nvar l_side_len=l_side.length;var r_side_len=r_side.length;var both_sides=l_side+\"\"+r_side;var l_digit=\"\";var r_digit=\"\";var num_places=0;var end_digits=0;var exp_sign=\"\";if(l_side_len>0){l_digit=l_side.substring(0,1);l_digits=l_side.substring(1,l_side_len);num_places=l_digits.length;end_digits=both_sides.substring(0,1)+\".\"+both_sides.substring(1,both_sides.length);end_digits=Number(end_digits);v_out_num=\"\"+sign+\"::\"+end_digits+\"::\"+num_places+\"\";}else{exp_sign=\"-\";var r_side_num=0;for(var i=1;i<=r_side_len;i++){r_digit=r_side.substring(i-1,i);r_side_num=Number(r_digit);if(r_side_num>0&&num_places==0){num_places=i;r_side=r_side.substring(i,r_side.length);end_digits=r_digit+\".\"+r_side;break;}}\nend_digits=Number(end_digits);v_out_num=\"\"+sign+\"::\"+end_digits+\"::-\"+num_places+\"\";}\nreturn v_out_num;}\nfunction calc_sn(form){var v_sn_1=document.calc.sn_1.value;var v_sn_2=document.calc.sn_2.value;if(v_sn_1.length==0){alert(\"Please enter the first scientific notation.\");document.calc.sn_1.focus();}else\nif(v_sn_2.length==0){alert(\"Please enter the second scientific notation.\");document.calc.sn_2.focus();}else{var sn_1_dig=\"\";var sn_1_exp=\"\";if(v_sn_1.indexOf(\"E\")>-1){var sn_1_ar=v_sn_1.split(\"E\");sn_1_dig=Number(sn_1_ar[0]);sn_1_exp=Number(sn_1_ar[1]);}else\nif(v_sn_1.indexOf(\"e\")>-1){var sn_1_ar=v_sn_1.split(\"e\");sn_1_dig=Number(sn_1_ar[0]);sn_1_exp=Number(sn_1_ar[1]);}else\nif(v_sn_1.indexOf(\"^\")>-1){var sn_1_ar=v_sn_1.split(\"^\");var sn_1_exp=Number(sn_1_ar[1]);if(sn_1_ar[0].indexOf(\"x\")>-1){var sn_1_dig_ar=sn_1_ar[0].split(\"x\");}else\nif(sn_1_ar[0].indexOf(\"X\")>-1){var sn_1_dig_ar=sn_1_ar[0].split(\"X\");}else\nif(sn_1_ar[0].indexOf(\"×\")>-1){var sn_1_dig_ar=sn_1_ar[0].split(\"×\");}\nsn_1_dig=Number(sn_1_dig_ar[0]);}else{}\nvar sn_2_dig=\"\";var sn_2_exp=\"\";if(v_sn_2.indexOf(\"E\")>-1){var sn_2_ar=v_sn_2.split(\"E\");sn_2_dig=Number(sn_2_ar[0]);sn_2_exp=Number(sn_2_ar[1]);}else\nif(v_sn_2.indexOf(\"e\")>-1){var sn_2_ar=v_sn_2.split(\"e\");sn_2_dig=Number(sn_2_ar[0]);sn_2_exp=Number(sn_2_ar[1]);}else\nif(v_sn_2.indexOf(\"^\")>-1){var sn_2_ar=v_sn_2.split(\"^\");var sn_2_exp=Number(sn_2_ar[1]);if(sn_2_ar[0].indexOf(\"x\")>-1){var sn_2_dig_ar=sn_2_ar[0].split(\"x\");}else\nif(sn_2_ar[0].indexOf(\"X\")>-1){var sn_2_dig_ar=sn_2_ar[0].split(\"X\");}else\nif(sn_2_ar[0].indexOf(\"×\")>-1){var sn_2_dig_ar=sn_2_ar[0].split(\"×\");}\nsn_2_dig=Number(sn_2_dig_ar[0]);}else{}\nvar v_op_idx=document.calc.op.selectedIndex;var op_sign=document.calc.op.options[v_op_idx].value;var tbl=\"<br /><br /><center><table class='ChartTable'>\";tbl+=\"<tr>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"<strong>\"+ops_ar[v_op_idx]+\" Steps</strong>\";tbl+=\"</td>\";tbl+=\"<td class='ChartTextCellLeft'><strong>\";tbl+=\"(\"+sn_1_dig+\" x 10<sup>\"+sn_1_exp+\"</sup>)\";tbl+=\" \"+op_sign+\" \";tbl+=\"(\"+sn_2_dig+\" x 10<sup>\"+sn_2_exp+\"</sup>)\";tbl+=\"</strong></td>\";tbl+=\"</tr>\";var tbl_2=\"<center><table class='ChartTable'>\";tbl_2+=\"<tr>\";tbl_2+=\"<td class='ChartTextCell'>\";tbl_2+=\"<strong>Attempt to Check Answer Manually</strong>\";tbl_2+=\"</td>\";tbl_2+=\"</tr>\";tbl_2+=\"<tr>\";tbl_2+=\"<td class='ChartTextCellLeft'><strong>\";tbl_2+=\"(\"+sn_1_dig+\" x 10<sup>\"+sn_1_exp+\"</sup>)\";tbl_2+=\" \"+op_sign+\" \";tbl_2+=\"(\"+sn_2_dig+\" x 10<sup>\"+sn_2_exp+\"</sup>)\";tbl_2+=\"</strong></td>\";tbl_2+=\"</tr>\";var ans_dig=0;var ans_exp=0;var ans_str=\"\";var fnl_ans_dig=0;var fnl_ans_exp=0;var v_ans=\"\";var v_chk_ans=0;var raw_ans=0;var raw_ans_1=0;var raw_ans_2=0;if(v_op_idx==0){v_chk_ans=(Number(sn_1_dig)*Math.pow(10,Number(sn_1_exp)))+(Number(sn_2_dig)*Math.pow(10,Number(sn_2_exp)));tbl+=\"<tr>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"Factor out 1 of the powers of 10\";tbl+=\"</td>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"= (\"+sn_1_dig+\" x 10<sup>\"+sn_1_exp+\"</sup>/10<sup>\"+sn_1_exp+\"</sup>\";tbl+=\" + \";tbl+=\"\"+sn_2_dig+\" x 10<sup>\"+sn_2_exp+\"</sup>/10<sup>\"+sn_1_exp+\"</sup>)\";tbl+=\" x 10<sup>\"+sn_1_exp+\"</sup>\";tbl+=\"</td>\";tbl+=\"</tr>\";var f_exp_1=Number(sn_1_exp)-Number(sn_1_exp);var f_exp_2=Number(sn_2_exp)-Number(sn_1_exp);tbl+=\"<tr>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"Perform division of exponents:\";tbl+=\"</td>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"= (\"+sn_1_dig+\" x 10<sup>\"+f_exp_1+\"</sup>\";tbl+=\" + \";tbl+=\"\"+sn_2_dig+\" x 10<sup>\"+f_exp_2+\"</sup>)\";tbl+=\" x 10<sup>\"+sn_1_exp+\"</sup>\";tbl+=\"</td>\";tbl+=\"</tr>\";var m_dig_1=Math.round(Number(sn_1_dig)*Math.pow(10,f_exp_1)*10000000000000)/10000000000000;var m_dig_2=Math.round(Number(sn_2_dig)*Math.pow(10,f_exp_2)*10000000000000)/10000000000000;tbl+=\"<tr>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"Convert SN's to real numbers:\";tbl+=\"</td>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"= (\"+m_dig_1+\" + \"+m_dig_2+\")\";tbl+=\" x 10<sup>\"+sn_1_exp+\"</sup>\";tbl+=\"</td>\";tbl+=\"</tr>\";ans_dig=Number(m_dig_1)+Number(m_dig_2);ans_exp=Number(sn_1_exp);tbl+=\"<tr>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"Combine real numbers:\";tbl+=\"</td>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"= (\"+ans_dig+\")\";tbl+=\" x \";tbl+=\"(10<sup>\"+ans_exp+\"</sup>)\";tbl+=\"</td>\";tbl+=\"</tr>\";ans_str=convert_num(ans_dig);var ans_ar=ans_str.split(\"::\");fnl_ans_dig=ans_ar[1];fnl_ans_exp=Number(ans_exp)+Number(ans_ar[2]);tbl+=\"<tr>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"Convert to proper SN:\";tbl+=\"</td>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"= \"+ans_ar[0]+\"\"+fnl_ans_dig+\"\";tbl+=\" x \";tbl+=\"10<sup>\"+fnl_ans_exp+\"</sup>\";tbl+=\"</td>\";tbl+=\"</tr>\";v_ans=\"\"+ans_ar[0]+\"\"+fnl_ans_dig+\" x 10^\"+fnl_ans_exp+\"\";raw_ans_1=convert_sn(sn_1_dig,sn_1_exp);raw_ans_2=convert_sn(sn_2_dig,sn_2_exp);raw_ans=Number(raw_ans_1)+Number(raw_ans_2);var raw_rnd=0;var raw_ans_str=raw_ans.toString();if(raw_ans_str.indexOf(\"e\")>-1){var raw_ans_ar=raw_ans_str.split(\"e\");var raw_ans_dig=Number(raw_ans_ar[0]);var raw_ans_exp=Number(raw_ans_ar[1]);raw_rnd=Math.pow(10,Math.abs(raw_ans_exp));raw_ans_dig=Math.round(raw_ans_dig*raw_rnd)/raw_rnd;raw_ans=convert_sn(raw_ans_dig,raw_ans_exp);}else{if(raw_ans_1.length>raw_ans_2.length){raw_rnd=Math.pow(10,Math.abs(raw_ans_1.length));}else{raw_rnd=Math.pow(10,Math.abs(raw_ans_2.length));}\nraw_ans=Math.round(raw_ans*raw_rnd)/raw_rnd;}\ntbl_2+=\"<tr>\";tbl_2+=\"<td class='ChartTextCellLeft'>\";tbl_2+=\"= (\"+sn_1_dig+\" x \"+Math.pow(10,sn_1_exp)+\") + (\";tbl_2+=\"\"+sn_2_dig+\" x \"+Math.pow(10,sn_2_exp)+\")\";tbl_2+=\"</td>\";tbl_2+=\"</tr>\";tbl_2+=\"<tr>\";tbl_2+=\"<td class='ChartTextCellLeft'>\";tbl_2+=\"= \"+raw_ans_1+\" + \"+raw_ans_2+\"\";tbl_2+=\"</td>\";tbl_2+=\"</tr>\";tbl_2+=\"<tr>\";tbl_2+=\"<td class='ChartTextCellLeft'>\";tbl_2+=\"= \"+raw_ans+\"\";tbl_2+=\"</td>\";tbl_2+=\"</tr>\";var man_ans_str=convert_num(raw_ans);var man_ans_ar=man_ans_str.split(\"::\");var man_ans_dig=man_ans_ar[1];var man_ans_exp=Number(man_ans_ar[2]);tbl_2+=\"<tr>\";tbl_2+=\"<td class='ChartTextCellLeft'>\";tbl_2+=\"= \"+man_ans_ar[0]+\"\"+ +man_ans_dig+\" x 10<sup>\"+man_ans_exp+\"</sup>\";tbl_2+=\"</td>\";tbl_2+=\"</tr>\";}else\nif(v_op_idx==1){v_chk_ans=(Number(sn_1_dig)*Math.pow(10,Number(sn_1_exp)))-(Number(sn_2_dig)*Math.pow(10,Number(sn_2_exp)));tbl+=\"<tr>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"Factor out 1 of the powers of 10\";tbl+=\"</td>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"= (\"+sn_1_dig+\" x 10<sup>\"+sn_1_exp+\"</sup>/10<sup>\"+sn_1_exp+\"</sup>\";tbl+=\" - \";tbl+=\"\"+sn_2_dig+\" x 10<sup>\"+sn_2_exp+\"</sup>/10<sup>\"+sn_1_exp+\"</sup>)\";tbl+=\" x 10<sup>\"+sn_1_exp+\"</sup>\";tbl+=\"</td>\";tbl+=\"</tr>\";var f_exp_1=Number(sn_1_exp)-Number(sn_1_exp);var f_exp_2=Number(sn_2_exp)-Number(sn_1_exp);tbl+=\"<tr>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"Perform division of exponents:\";tbl+=\"</td>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"= (\"+sn_1_dig+\" x 10<sup>\"+f_exp_1+\"</sup>\";tbl+=\" - \";tbl+=\"\"+sn_2_dig+\" x 10<sup>\"+f_exp_2+\"</sup>)\";tbl+=\" x 10<sup>\"+sn_1_exp+\"</sup>\";tbl+=\"</td>\";tbl+=\"</tr>\";var m_dig_1=Math.round(Number(sn_1_dig)*Math.pow(10,f_exp_1)*10000000000000)/10000000000000;var m_dig_2=Math.round(Number(sn_2_dig)*Math.pow(10,f_exp_2)*10000000000000)/10000000000000;tbl+=\"<tr>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"Convert SN's to real numbers:\";tbl+=\"</td>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"= (\"+m_dig_1+\" - \"+m_dig_2+\")\";tbl+=\" x 10<sup>\"+sn_1_exp+\"</sup>\";tbl+=\"</td>\";tbl+=\"</tr>\";ans_dig=Number(m_dig_1)-Number(m_dig_2);ans_exp=Number(sn_1_exp);tbl+=\"<tr>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"Perform real number subtraction:\";tbl+=\"</td>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"= (\"+ans_dig+\")\";tbl+=\" x \";tbl+=\"(10<sup>\"+ans_exp+\"</sup>)\";tbl+=\"</td>\";tbl+=\"</tr>\";ans_str=convert_num(ans_dig);var ans_ar=ans_str.split(\"::\");fnl_ans_dig=ans_ar[1];fnl_ans_exp=Number(ans_exp)+Number(ans_ar[2]);tbl+=\"<tr>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"Convert to proper SN:\";tbl+=\"</td>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"= \"+ans_ar[0]+\"\"+fnl_ans_dig+\"\";tbl+=\" x \";tbl+=\"10<sup>\"+fnl_ans_exp+\"</sup>\";tbl+=\"</td>\";tbl+=\"</tr>\";v_ans=\"\"+ans_ar[0]+\"\"+fnl_ans_dig+\" x 10^\"+fnl_ans_exp+\"\";raw_ans_1=convert_sn(sn_1_dig,sn_1_exp);raw_ans_2=convert_sn(sn_2_dig,sn_2_exp);raw_ans=Number(raw_ans_1)-Number(raw_ans_2);var raw_ans_str=raw_ans.toString();var raw_rnd=0;if(raw_ans_str.indexOf(\"e\")>-1){var raw_ans_ar=raw_ans_str.split(\"e\");var raw_ans_dig=Number(raw_ans_ar[0]);var raw_ans_exp=Number(raw_ans_ar[1]);raw_rnd=Math.pow(10,Math.abs(raw_ans_exp));raw_ans_dig=Math.round(raw_ans_dig*raw_rnd)/raw_rnd;raw_ans=convert_sn(raw_ans_dig,raw_ans_exp);}else{if(raw_ans_1.length>raw_ans_2.length){raw_rnd=Math.pow(10,Math.abs(raw_ans_1.length));}else{raw_rnd=Math.pow(10,Math.abs(raw_ans_2.length));}\nraw_ans=Math.round(raw_ans*raw_rnd)/raw_rnd;}\ntbl_2+=\"<tr>\";tbl_2+=\"<td class='ChartTextCellLeft'>\";tbl_2+=\"= (\"+sn_1_dig+\" x \"+Math.pow(10,sn_1_exp)+\") - (\";tbl_2+=\"\"+sn_2_dig+\" x \"+Math.pow(10,sn_2_exp)+\")\";tbl_2+=\"</td>\";tbl_2+=\"</tr>\";tbl_2+=\"<tr>\";tbl_2+=\"<td class='ChartTextCellLeft'>\";tbl_2+=\"= \"+raw_ans_1+\" - \"+raw_ans_2+\"\";tbl_2+=\"</td>\";tbl_2+=\"</tr>\";tbl_2+=\"<tr>\";tbl_2+=\"<td class='ChartTextCellLeft'>\";tbl_2+=\"= \"+raw_ans+\"\";tbl_2+=\"</td>\";tbl_2+=\"</tr>\";var man_ans_str=convert_num(raw_ans);var man_ans_ar=man_ans_str.split(\"::\");var man_ans_dig=man_ans_ar[1];var man_ans_exp=Number(man_ans_ar[2]);tbl_2+=\"<tr>\";tbl_2+=\"<td class='ChartTextCellLeft'>\";tbl_2+=\"= \"+man_ans_ar[0]+\"\"+man_ans_dig+\" x 10<sup>\"+man_ans_exp+\"</sup>\";tbl_2+=\"</td>\";tbl_2+=\"</tr>\";}else\nif(v_op_idx==2){v_chk_ans=(Number(sn_1_dig)*Math.pow(10,Number(sn_1_exp)))*(Number(sn_2_dig)*Math.pow(10,Number(sn_2_exp)));tbl+=\"<tr>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"Group like terms:\";tbl+=\"</td>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"= (\"+sn_1_dig+\" x \"+sn_2_dig+\")\";tbl+=\" x \";tbl+=\"(10<sup>\"+sn_1_exp+\"</sup> x 10<sup>\"+sn_2_exp+\"</sup>)\";tbl+=\"</td>\";tbl+=\"</tr>\";ans_dig=Math.round(Number(sn_1_dig)*Number(sn_2_dig)*10000000000000)/10000000000000;ans_exp=Number(sn_1_exp)+Number(sn_2_exp);tbl+=\"<tr>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"Multiply coefficients and add exponents:\";tbl+=\"</td>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"= (\"+ans_dig+\")\";tbl+=\" x \";tbl+=\"(10<sup>\"+ans_exp+\"</sup>)\";tbl+=\"</td>\";tbl+=\"</tr>\";ans_str=convert_num(ans_dig);var ans_ar=ans_str.split(\"::\");fnl_ans_dig=ans_ar[1];fnl_ans_exp=Number(ans_exp)+Number(ans_ar[2]);tbl+=\"<tr>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"Convert to proper SN:\";tbl+=\"</td>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"= \"+ans_ar[0]+\"\"+fnl_ans_dig+\"\";tbl+=\" x \";tbl+=\"10<sup>\"+fnl_ans_exp+\"</sup>\";tbl+=\"</td>\";tbl+=\"</tr>\";v_ans=\"\"+ans_ar[0]+\"\"+fnl_ans_dig+\" x 10^\"+fnl_ans_exp+\"\";raw_ans_1=convert_sn(sn_1_dig,sn_1_exp);raw_ans_2=convert_sn(sn_2_dig,sn_2_exp);raw_ans=raw_ans_1*raw_ans_2;var raw_ans_str=raw_ans.toString();if(raw_ans_str.indexOf(\"e\")>-1){var raw_ans_ar=raw_ans_str.split(\"e\");var raw_ans_dig=Number(raw_ans_ar[0]);var raw_ans_exp=Number(raw_ans_ar[1]);var raw_rnd=Math.pow(10,Math.abs(raw_ans_exp));raw_ans_dig=Math.round(raw_ans_dig*raw_rnd)/raw_rnd;raw_ans=convert_sn(raw_ans_dig,raw_ans_exp);}else{raw_ans=raw_ans_str;}\ntbl_2+=\"<tr>\";tbl_2+=\"<td class='ChartTextCellLeft'>\";tbl_2+=\"= (\"+sn_1_dig+\" x \"+Math.pow(10,sn_1_exp)+\") x (\";tbl_2+=\"\"+sn_2_dig+\" x \"+Math.pow(10,sn_2_exp)+\")\";tbl_2+=\"</td>\";tbl_2+=\"</tr>\";tbl_2+=\"<tr>\";tbl_2+=\"<td class='ChartTextCellLeft'>\";tbl_2+=\"= \"+raw_ans_1+\" x \"+raw_ans_2+\"\";tbl_2+=\"</td>\";tbl_2+=\"</tr>\";tbl_2+=\"<tr>\";tbl_2+=\"<td class='ChartTextCellLeft'>\";tbl_2+=\"= \"+raw_ans+\"\";tbl_2+=\"</td>\";tbl_2+=\"</tr>\";var man_ans_str=convert_num(raw_ans);var man_ans_ar=man_ans_str.split(\"::\");var man_ans_dig=man_ans_ar[1];var man_ans_exp=Number(man_ans_ar[2]);tbl_2+=\"<tr>\";tbl_2+=\"<td class='ChartTextCellLeft'>\";tbl_2+=\"= \"+man_ans_ar[0]+\"\"+ +man_ans_dig+\" x 10<sup>\"+man_ans_exp+\"</sup>\";tbl_2+=\"</td>\";tbl_2+=\"</tr>\";}else\nif(v_op_idx==3){v_chk_ans=(Number(sn_1_dig)*Math.pow(10,Number(sn_1_exp)))/(Number(sn_2_dig)*Math.pow(10,Number(sn_2_exp)));tbl+=\"<tr>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"Group like terms:\";tbl+=\"</td>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"= (\"+sn_1_dig+\" &divide; \"+sn_2_dig+\")\";tbl+=\" x \";tbl+=\"(10<sup>\"+sn_1_exp+\"</sup> &divide; 10<sup>\"+sn_2_exp+\"</sup>)\";tbl+=\"</td>\";tbl+=\"</tr>\";ans_dig=Math.round(Number(sn_1_dig)/Number(sn_2_dig)*10000000000000)/10000000000000;ans_exp=Number(sn_1_exp)-Number(sn_2_exp);tbl+=\"<tr>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"Divide coefficients and Subtract exponents:\";tbl+=\"</td>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"= (\"+ans_dig+\")\";tbl+=\" x \";tbl+=\"(10<sup>\"+ans_exp+\"</sup>)\";tbl+=\"</td>\";tbl+=\"</tr>\";ans_str=convert_num(ans_dig);var ans_ar=ans_str.split(\"::\");fnl_ans_dig=ans_ar[1];fnl_ans_exp=Number(ans_exp)+Number(ans_ar[2]);tbl+=\"<tr>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"Convert to proper SN:\";tbl+=\"</td>\";tbl+=\"<td class='ChartTextCellLeft'>\";tbl+=\"= \"+ans_ar[0]+\"\"+fnl_ans_dig+\"\";tbl+=\" x \";tbl+=\"10<sup>\"+fnl_ans_exp+\"</sup>\";tbl+=\"</td>\";tbl+=\"</tr>\";v_ans=\"\"+ans_ar[0]+\"\"+fnl_ans_dig+\" x 10^\"+fnl_ans_exp+\"\";raw_ans_1=convert_sn(sn_1_dig,sn_1_exp);raw_ans_2=convert_sn(sn_2_dig,sn_2_exp);raw_ans=raw_ans_1/raw_ans_2;var raw_ans_str=raw_ans.toString();if(raw_ans_str.indexOf(\"e\")>-1){var raw_ans_ar=raw_ans_str.split(\"e\");var raw_ans_dig=Number(raw_ans_ar[0]);var raw_ans_exp=Number(raw_ans_ar[1]);var raw_rnd=Math.pow(10,Math.abs(raw_ans_exp));raw_ans_dig=Math.round(raw_ans_dig*raw_rnd)/raw_rnd;raw_ans=convert_sn(raw_ans_dig,raw_ans_exp);}else{raw_ans=raw_ans_str;}\ntbl_2+=\"<tr>\";tbl_2+=\"<td class='ChartTextCellLeft'>\";tbl_2+=\"= (\"+sn_1_dig+\" x \"+Math.pow(10,sn_1_exp)+\") &divide; (\";tbl_2+=\"\"+sn_2_dig+\" x \"+Math.pow(10,sn_2_exp)+\")\";tbl_2+=\"</td>\";tbl_2+=\"</tr>\";tbl_2+=\"<tr>\";tbl_2+=\"<td class='ChartTextCellLeft'>\";tbl_2+=\"= \"+raw_ans_1+\" &divide; \"+raw_ans_2+\"\";tbl_2+=\"</td>\";tbl_2+=\"</tr>\";tbl_2+=\"<tr>\";tbl_2+=\"<td class='ChartTextCellLeft'>\";tbl_2+=\"= \"+raw_ans+\"\";tbl_2+=\"</td>\";tbl_2+=\"</tr>\";var man_ans_str=convert_num(raw_ans);var man_ans_ar=man_ans_str.split(\"::\");var man_ans_dig=man_ans_ar[1];var man_ans_exp=Number(man_ans_ar[2]);tbl_2+=\"<tr>\";tbl_2+=\"<td class='ChartTextCellLeft'>\";tbl_2+=\"= \"+man_ans_ar[0]+\"\"+ +man_ans_dig+\" x 10<sup>\"+man_ans_exp+\"</sup>\";tbl_2+=\"</td>\";tbl_2+=\"</tr>\";}\ntbl+=\"</table></center><br /><br />\";tbl_2+=\"</table></center><br /><br />\";document.calc.ans.value=v_ans;document.calc.chk_ans.value=v_chk_ans;var v_summary=\"<br /><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHSLSkgqRY3PY_iFXdVxZzoPMK12-GxS8IPLF3nONJTGil5Q6QndcuvQRCPGPByHYCMcgl3VSzfR0qAkMJvnpaz6V-xzGJNDWC00aZY3aPNIIPzoesvPpp_qVyIrdLbs69xt8kNPaco3ZR/s72-c/BASIC+JAVA+CALCULATOR.png' width='60' height='54' class='ItemLeft' />\";v_summary+=\"According to my calculations, (\"+sn_1_dig+\" x 10<sup>\"+sn_1_exp+\"</sup>) \";v_summary+=\"\"+op_sign+\" (\"+sn_2_dig+\" x 10<sup>\"+sn_2_exp+\"</sup>) is equal to <strong>\";v_summary+=\"\"+ans_ar[0]+\"\"+fnl_ans_dig+\" x 10<sup>\"+fnl_ans_exp+\"</sup></strong> (you may \";v_summary+=\"also see expressed as \"+ans_ar[0]+\"\"+fnl_ans_dig+\"e\"+fnl_ans_exp+\" or \";v_summary+=\"\"+ans_ar[0]+\"\"+fnl_ans_dig+\"E\"+fnl_ans_exp+\").<p>The following \";v_summary+=\"table shows the steps I took to perform \";v_summary+=\"the \"+ops_ar[v_op_idx]+\" on the entered scientific notations.\"+tbl+\"In \";v_summary+=\"the following table I \";v_summary+=\"attempt show how you could arrive at the same answer by converting the scientific notations \";v_summary+=\"to real numbers, performing the \"+ops_ar[v_op_idx]+\", and then converting the result back \";v_summary+=\"to scientific notation.<br /><br />\"+tbl_2+\"Because the language used to create this \";v_summary+=\"calculator is not well-equipped to deal with very large or very small numbers, I actually \";v_summary+=\"have to manipulate text strings to generate the results you see above. For this reason I can't \";v_summary+=\"guarantee the decimal accuracy of the results.<br /><br />\";document.getElementById(\"summary\").innerHTML=v_summary;}}\nfunction clear_results(form){document.calc.ans.value=\"\";document.calc.chk_ans.value=\"\";document.getElementById(\"summary\").innerHTML=\"\";}\nfunction reset_calc(form){document.getElementById(\"summary\").innerHTML=\"\";document.calc.reset();}";
var mod_pagespeed_PJWHvBYF1j = "var offsetfromcursorX=12\nvar offsetfromcursorY=10\nvar offsetdivfrompointerX=10\nvar offsetdivfrompointerY=14\ndocument.write('<div class=\"div_help\" id=\"dhtmltooltip\" onClick=\"hideddrivetip()\"></div>')\ndocument.write('<img id=\"dhtmlpointer\" src=\"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHSLSkgqRY3PY_iFXdVxZzoPMK12-GxS8IPLF3nONJTGil5Q6QndcuvQRCPGPByHYCMcgl3VSzfR0qAkMJvnpaz6V-xzGJNDWC00aZY3aPNIIPzoesvPpp_qVyIrdLbs69xt8kNPaco3ZR/s72-c/BASIC+JAVA+CALCULATOR.png\">')\nvar ie=document.all\nvar ns6=document.getElementById&&!document.all\nvar enabletip=false\nif(ie||ns6)\nvar tipobj=document.all?document.all[\"dhtmltooltip\"]:document.getElementById?document.getElementById(\"dhtmltooltip\"):\"\"\nvar pointerobj=document.all?document.all[\"dhtmlpointer\"]:document.getElementById?document.getElementById(\"dhtmlpointer\"):\"\"\nfunction ietruebody(){return(document.compatMode&&document.compatMode!=\"BackCompat\")?document.documentElement:document.body}\nfunction ddrivetip(thetext,thewidth,thecolor){if(ns6||ie){if(typeof thewidth!=\"undefined\")tipobj.style.width=thewidth+\"px\"\nif(typeof thecolor!=\"undefined\"&&thecolor!=\"\")tipobj.style.backgroundColor=thecolor\ntipobj.innerHTML=thetext\nenabletip=true\nreturn false}}\nfunction positiontip(e){if(enabletip){var nondefaultpos=false\nvar curX=(ns6)?e.pageX:event.clientX+ietruebody().scrollLeft;var curY=(ns6)?e.pageY:event.clientY+ietruebody().scrollTop;var winwidth=ie&&!window.opera?ietruebody().clientWidth:window.innerWidth-20\nvar winheight=ie&&!window.opera?ietruebody().clientHeight:window.innerHeight-20\nvar rightedge=ie&&!window.opera?winwidth-event.clientX-offsetfromcursorX:winwidth-e.clientX-offsetfromcursorX\nvar bottomedge=ie&&!window.opera?winheight-event.clientY-offsetfromcursorY:winheight-e.clientY-offsetfromcursorY\nvar leftedge=(offsetfromcursorX<0)?offsetfromcursorX*(-1):-1000\nif(rightedge<tipobj.offsetWidth){tipobj.style.left=curX-tipobj.offsetWidth+\"px\"\nnondefaultpos=true}\nelse if(curX<leftedge)\ntipobj.style.left=\"5px\"\nelse{tipobj.style.left=curX+offsetfromcursorX-offsetdivfrompointerX+\"px\"\npointerobj.style.left=curX+offsetfromcursorX+\"px\"}\nif(bottomedge<tipobj.offsetHeight){tipobj.style.top=curY-tipobj.offsetHeight-offsetfromcursorY+\"px\"\nnondefaultpos=true}\nelse{tipobj.style.top=curY+offsetfromcursorY+offsetdivfrompointerY+\"px\"\npointerobj.style.top=curY+offsetfromcursorY+\"px\"}\ntipobj.style.visibility=\"visible\"\nif(!nondefaultpos)\npointerobj.style.visibility=\"visible\"\nelse\npointerobj.style.visibility=\"hidden\"}}\nfunction hideddrivetip(){if(ns6||ie){enabletip=false\ntipobj.style.visibility=\"hidden\"\npointerobj.style.visibility=\"hidden\"\ntipobj.style.left=\"-1000px\"\ntipobj.style.backgroundColor=''\ntipobj.style.width=''}}\ndocument.onmousemove=positiontip\nfunction sn(num){num=num.toString();var len=num.length;var rnum=\"\";var test=\"\";var j=0;var b=num.substring(0,1);if(b==\"-\"){rnum=\"-\";}\nfor(i=0;i<=len;i++){b=num.substring(i,i+1);if(b==\"0\"||b==\"1\"||b==\"2\"||b==\"3\"||b==\"4\"||b==\"5\"||b==\"6\"||b==\"7\"||b==\"8\"||b==\"9\"||b==\".\"){rnum=rnum+\"\"+b;}}\nif(rnum==\"\"||rnum==\"-\"){rnum=0;}\nrnum=Number(rnum);return rnum;}\nfunction fns(num,places,comma,type,show){var sym_1=\"$\";var sym_2=\"\";var isNeg=0;if(num<0){num=num*-1;isNeg=1;}\nvar myDecFact=1;var myPlaces=0;var myZeros=\"\";while(myPlaces<places){myDecFact=myDecFact*10;myPlaces=Number(myPlaces)+Number(1);myZeros=myZeros+\"0\";}\nonum=Math.round(num*myDecFact)/myDecFact;integer=Math.floor(onum);if(Math.ceil(onum)==integer){decimal=myZeros;}else{decimal=Math.round((onum-integer)*myDecFact)}\ndecimal=decimal.toString();if(decimal.length<places){fillZeroes=places-decimal.length;for(z=0;z<fillZeroes;z++){decimal=\"0\"+decimal;}}\nif(places>0){decimal=\".\"+decimal;}\nif(comma==1){integer=integer.toString();var tmpnum=\"\";var tmpinteger=\"\";var y=0;for(x=integer.length;x>0;x--){tmpnum=tmpnum+integer.charAt(x-1);y=y+1;if(y==3&x>1){tmpnum=tmpnum+\",\";y=0;}}\nfor(x=tmpnum.length;x>0;x--){tmpinteger=tmpinteger+tmpnum.charAt(x-1);}\nfinNum=tmpinteger+\"\"+decimal;}else{finNum=integer+\"\"+decimal;}\nif(isNeg==1){if(type==1&&show==1){finNum=\"-\"+sym_1+\"\"+finNum+\"\"+sym_2;}else{finNum=\"-\"+finNum;}}else{if(show==1){if(type==1){finNum=sym_1+\"\"+finNum+\"\"+sym_2;}else\nif(type==2){finNum=finNum+\"%\";}}}\nreturn finNum;}\nfunction side_calc_b(num){var v_result=document.side_calc.result.value;if(v_result.length<10){var v_new_result=v_result+\"\"+num;document.side_calc.result.value=v_new_result;}}\nfunction side_calc_del(num){var v_result=document.side_calc.result.value;if(v_result.length>0){var v_new_result=v_result.substring(0,v_result.length-1);document.side_calc.result.value=v_new_result;}}\nfunction side_calc_sign(sgn){document.side_calc.h_sign.value=sgn;document.side_calc.h_num_1.value=document.side_calc.result.value;document.side_calc.result.value=\"\";var tape_sgn=\"\";if(sgn!=\"\"){if(sgn==\"/\"){tape_sgn=\"&divide;\";}else\nif(sgn==\"*\"){tape_sgn=\"&times;\";}else\nif(sgn==\"-\"){tape_sgn=\"-\";}else\nif(sgn==\"+\"){tape_sgn=\"+\";}}\nvar tape_new=document.getElementById(\"side_calc_tape_new\").innerHTML;var new_tape=\"\"+document.side_calc.h_num_1.value+\" \"+tape_sgn+\"\";document.getElementById(\"side_calc_tape_new\").innerHTML=new_tape;}\nfunction side_calc_equal(form){var v_1=Number(document.side_calc.h_num_1.value);var v_2=Number(document.side_calc.result.value);var v_sign=document.getElementById(\"h_sign\").value;var v_new_result=0;if(v_sign!=\"\"){if(v_sign==\"/\"){v_new_result=v_1/v_2;}else\nif(v_sign==\"*\"){v_new_result=v_1*v_2;}else\nif(v_sign==\"-\"){v_new_result=v_1-v_2;}else\nif(v_sign==\"+\"){v_new_result=v_1+v_2;}\nif(v_new_result>99999999.99||v_new_result<-99999999.99){alert(\"Sorry, the result is too big (greater than 1 billion) for this calculator.\");}else{document.side_calc.result.value=v_new_result;document.side_calc.h_num_1.value=v_new_result;document.side_calc.h_sign.value=\"\";var tape_new=document.getElementById(\"side_calc_tape_new\").innerHTML;var new_tape=\"\"+tape_new+\" \"+v_2+\" = \"+v_new_result+\"\";document.getElementById(\"side_calc_tape_new\").innerHTML=\"\";var tape_old=document.getElementById(\"side_calc_tape_old\").innerHTML;document.getElementById(\"side_calc_tape_old\").innerHTML=\"\"+new_tape+\"<hr style='border: dashed #EEEEEE 1px; line-height: 1;'>\"+tape_old+\"\";document.getElementById(\"side_calc_tape_but\").innerHTML=\"<input type='button' value='Throw Away' onClick='side_calc_clr_tape(this.form)' class='SideCalcClrTape' />\";}}}\nfunction side_calc_pm(form){var v_pm=Number(document.side_calc.result.value);v_pm=v_pm*-1;document.side_calc.result.value=v_pm;}\nfunction side_calc_clr(form){document.side_calc.result.value=\"\";document.side_calc.h_num_1.value=\"\";document.side_calc.h_sign.value=\"\";}\nfunction side_calc_clr_tape(form){document.getElementById(\"side_calc_tape_new\").innerHTML=\"\";document.getElementById(\"side_calc_tape_old\").innerHTML=\"\";document.getElementById(\"side_calc_tape_but\").innerHTML=\"\";}\nvar soc_ad_ar=[[0,\"\",\"\",\"\"],[1,\"Auto\",\"SocialMedia\",\"If you like this calculator, please pay it forward with a <strong>Like</strong>, <strong>Tweet</strong>, <strong>+1</strong>, or <strong>Pin</strong>.\"],[2,\"Budget\",\"SocialMedia\",\"If you like this calculator, please pay it forward with a <strong>Like</strong>, <strong>Tweet</strong>, <strong>+1</strong>, or <strong>Pin</strong>.\"],[3,\"Credit\",\"SocialMedia\",\"If you like this calculator, please pay it forward with a <strong>Like</strong>, <strong>Tweet</strong>, <strong>+1</strong>, or <strong>Pin</strong>.\"],[4,\"Debt\",\"SocialMedia\",\"If you like this calculator, please pay it forward with a <strong>Like</strong>, <strong>Tweet</strong>, <strong>+1</strong>, or <strong>Pin</strong>.\"],[5,\"Income\",\"SocialMedia\",\"If you like this calculator, please pay it forward with a <strong>Like</strong>, <strong>Tweet</strong>, <strong>+1</strong>, or <strong>Pin</strong>.\"],[6,\"Invest\",\"SocialMedia\",\"If you like this calculator, please pay it forward with a <strong>Like</strong>, <strong>Tweet</strong>, <strong>+1</strong>, or <strong>Pin</strong>.\"],[7,\"Loan\",\"SocialMedia\",\"If you like this calculator, please pay it forward with a <strong>Like</strong>, <strong>Tweet</strong>, <strong>+1</strong>, or <strong>Pin</strong>.\"],[8,\"Mortgage\",\"SocialMedia\",\"If you like this calculator, please pay it forward with a <strong>Like</strong>, <strong>Tweet</strong>, <strong>+1</strong>, or <strong>Pin</strong>.\"],[9,\"Finance\",\"SocialMedia\",\"If you like this calculator, please pay it forward with a <strong>Like</strong>, <strong>Tweet</strong>, <strong>+1</strong>, or <strong>Pin</strong>.\"],[10,\"Retire\",\"SocialMedia\",\"If you like this calculator, please pay it forward with a <strong>Like</strong>, <strong>Tweet</strong>, <strong>+1</strong>, or <strong>Pin</strong>.\"],[11,\"College\",\"WyzAnt\",\"Find a <a href='http://www.shareasale.com/r.cfm?b=246096&u=724440&m=28558&urllink=&afftrack=' rel='nofollow' target='_blank'>local tutor</a> today!\"],[12,\"Business\",\"SocialMedia\",\"If you like this calculator, please pay it forward with a <strong>Like</strong>, <strong>Tweet</strong>, <strong>+1</strong>, or <strong>Pin</strong>.\"],[13,\"\",\"\",\"\"],[14,\"\",\"\",\"\"],[15,\"\",\"\",\"\"],[16,\"\",\"\",\"\"],[17,\"\",\"\",\"\"],[18,\"\",\"\",\"\"],[19,\"\",\"\",\"\"],[20,\"Date\",\"SocialMedia\",\"If you like this calculator, please pay it forward with a <strong>Like</strong>, <strong>Tweet</strong>, <strong>+1</strong>, or <strong>Pin</strong>.\"],[21,\"Conversion\",\"SocialMedia\",\"If you like this calculator, please pay it forward with a <strong>Like</strong>, <strong>Tweet</strong>, <strong>+1</strong>, or <strong>Pin</strong>.\"],[22,\"Math\",\"WyzAnt\",\"Find a local <a href='http://www.shareasale.com/r.cfm?b=246097&u=724440&m=28558&urllink=&afftrack=' rel='nofollow' target='_blank'>math tutor</a> today!\"],[23,\"Date\",\"SocialMedia\",\"If you like this calculator, please pay it forward with a <strong>Like</strong>, <strong>Tweet</strong>, <strong>+1</strong>, or <strong>Pin</strong>.\"],[24,\"Sports\",\"SocialMedia\",\"If you like this web app, please pay it forward with a <strong>Like</strong>, <strong>Tweet</strong>, <strong>+1</strong>, or <strong>Pin</strong>.\"]];";
</script>

<script>eval(mod_pagespeed_sBNIvg6Li0);</script>
<script>eval(mod_pagespeed_PJWHvBYF1j);</script>

</head>

<body>
<form name="calc" method="post" action="#">
<table class="CalcTable">
<tbody>
<tr>
<td colspan="2" align="center" class="CalcTitleCell">
SCIENTIFIC NOTATION CALCULATOR
</td>
</tr>
<tr>
<td colspan="2" class="CalcInstructCell">
<br/>
<br/>
<strong>Instructions:</strong> Enter a scientific notation the first line, choose the operation to perform, enter a  second scientific notation on the third line, and then click the "Perform Scientific Notation Math" button.
<p>
Note that when entering a scientific notation you can enter it in any one of three acceptable formats: 2.4e-5, 2.4E-5, or 2.4 x 10^-5 (the "^" can be entered by pressing the 6 key while holding down the shift key on most keyboards). Regardless of which format you choose to use, the calculator will display the results in latter format.
</p>
<p>
Mouse over the blue question marks for a further explanation of each entry field. More in-depth explanations can be found in the glossary of terms located beneath the Scientific Notation Calculator.
</p>
</td>
</tr>
<tr class="ChartRowOdd">
<td width="400" class="ChartTextCellLeft">
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/2wBDAAYEBAQFBAYFBQYJBgUGCQsIBgYICwwKCgsKCgwQDAwMDAwMEAwODxAPDgwTExQUExMcGxsbHB8fHx8fHx8fHx//2wBDAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCAAPAA8DAREAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAABQP/xAAkEAACAgEDBAIDAAAAAAAAAAABAgMFBAYRIQAHEjETIhUjYf/EABYBAQEBAAAAAAAAAAAAAAAAAAIDBf/EACARAQAABgIDAQAAAAAAAAAAAAEAAgMREkExURNhceH/2gAMAwEAAhEDEQA/AL5OrLB+4uo6+zvdSmBLLKhra6kyX+UkZLqEVXYqqog4AH862SkeOVCXjcZjO5os3OoYr/z+J3mXSA1ZcZ9ZNj5SMWzJWnjaSvlbY/Yx/NE+xU7cMAffU5sWjniD89wy5UxybfkDrp3VEHd+1salYcvMaysHxMbCtqyHM/Y8vlskrZDKRGW81aLcDf0eRTOVpA9Gm0DCbyKduyAtHaOu4LvId8iuLmutUAS1rZH85K3IQcJkM23k32b0o5OwBPVatUtvk09nqBTpt9cOzqP/2Q==" alt="Help" onMouseover="ddrivetip('Enter the first scientific notation of the equation. Note that you can enter scientific notation in any of these formats: 35e7, 35E7, or 35x10^7.', 250)" ; onMouseout="hideddrivetip()">
Enter first scientific notation:
</td>
<td width="200" class="ChartTextCell">
<input type="text" id="sn_1" name="sn_1" size="20" value="4.9 x 10^-6" class="CalcInFld" onKeyUp="clear_results(this.form)"/>
</td>
</tr>
<tr class="ChartRowEven">
<td width="400" class="ChartTextCellLeft">
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/2wBDAAYEBAQFBAYFBQYJBgUGCQsIBgYICwwKCgsKCgwQDAwMDAwMEAwODxAPDgwTExQUExMcGxsbHB8fHx8fHx8fHx//2wBDAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCAAPAA8DAREAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAABQP/xAAkEAACAgEDBAIDAAAAAAAAAAABAgMFBAYRIQAHEjETIhUjYf/EABYBAQEBAAAAAAAAAAAAAAAAAAIDBf/EACARAQAABgIDAQAAAAAAAAAAAAEAAgMREkExURNhceH/2gAMAwEAAhEDEQA/AL5OrLB+4uo6+zvdSmBLLKhra6kyX+UkZLqEVXYqqog4AH862SkeOVCXjcZjO5os3OoYr/z+J3mXSA1ZcZ9ZNj5SMWzJWnjaSvlbY/Yx/NE+xU7cMAffU5sWjniD89wy5UxybfkDrp3VEHd+1salYcvMaysHxMbCtqyHM/Y8vlskrZDKRGW81aLcDf0eRTOVpA9Gm0DCbyKduyAtHaOu4LvId8iuLmutUAS1rZH85K3IQcJkM23k32b0o5OwBPVatUtvk09nqBTpt9cOzqP/2Q==" alt="Help" onMouseover="ddrivetip('Choose the operation you would like the calculator to perform on the two entered exponential notations.', 250)" ; onMouseout="hideddrivetip()">
Choose operation:
</td>
<td width="200" class="ChartTextCell">
<select name="op" size="1" onChange="clear_results(this.form)">
<option value="+">Plus</option>
<option value="-" selected>Minus</option>
<option value="x">Times</option>
<option value="&divide;">Divided by</option>
</select>
</td>
</tr>
<tr class="ChartRowOdd">
<td width="400" class="ChartTextCellLeft">
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/2wBDAAYEBAQFBAYFBQYJBgUGCQsIBgYICwwKCgsKCgwQDAwMDAwMEAwODxAPDgwTExQUExMcGxsbHB8fHx8fHx8fHx//2wBDAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCAAPAA8DAREAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAABQP/xAAkEAACAgEDBAIDAAAAAAAAAAABAgMFBAYRIQAHEjETIhUjYf/EABYBAQEBAAAAAAAAAAAAAAAAAAIDBf/EACARAQAABgIDAQAAAAAAAAAAAAEAAgMREkExURNhceH/2gAMAwEAAhEDEQA/AL5OrLB+4uo6+zvdSmBLLKhra6kyX+UkZLqEVXYqqog4AH862SkeOVCXjcZjO5os3OoYr/z+J3mXSA1ZcZ9ZNj5SMWzJWnjaSvlbY/Yx/NE+xU7cMAffU5sWjniD89wy5UxybfkDrp3VEHd+1salYcvMaysHxMbCtqyHM/Y8vlskrZDKRGW81aLcDf0eRTOVpA9Gm0DCbyKduyAtHaOu4LvId8iuLmutUAS1rZH85K3IQcJkM23k32b0o5OwBPVatUtvk09nqBTpt9cOzqP/2Q==" alt="Help" onMouseover="ddrivetip('Enter the second scientific notation of the equation. Note that you can enter scientific notation in any of these formats: 35e7, 35E7, or 35x10^7.', 250)" ; onMouseout="hideddrivetip()">
Enter second scientific notation:
</td>
<td width="200" class="ChartTextCell">
<input type="text" id="sn_2" name="sn_2" size="20" value="7.9 x 10^-5" class="CalcInFld" onKeyUp="clear_results(this.form)"/>
</td>
</tr>
<tr class="ChartRowEven">
<td colspan="2" class="ChartTextCell">
<input type="button" class="CalcButton" value="Perform Scientific Notation Math" onClick="calc_sn(this.form)"/>
<input type="button" class="CalcButton" value="Reset" onClick="reset_calc(this.form)"/>
</td>
</tr>
<tr class="ChartRowOdd">
<td width="400" class="ChartTextCellLeft">
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/2wBDAAYEBAQFBAYFBQYJBgUGCQsIBgYICwwKCgsKCgwQDAwMDAwMEAwODxAPDgwTExQUExMcGxsbHB8fHx8fHx8fHx//2wBDAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCAAPAA8DAREAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAABQP/xAAkEAACAgEDBAIDAAAAAAAAAAABAgMFBAYRIQAHEjETIhUjYf/EABYBAQEBAAAAAAAAAAAAAAAAAAIDBf/EACARAQAABgIDAQAAAAAAAAAAAAEAAgMREkExURNhceH/2gAMAwEAAhEDEQA/AL5OrLB+4uo6+zvdSmBLLKhra6kyX+UkZLqEVXYqqog4AH862SkeOVCXjcZjO5os3OoYr/z+J3mXSA1ZcZ9ZNj5SMWzJWnjaSvlbY/Yx/NE+xU7cMAffU5sWjniD89wy5UxybfkDrp3VEHd+1salYcvMaysHxMbCtqyHM/Y8vlskrZDKRGW81aLcDf0eRTOVpA9Gm0DCbyKduyAtHaOu4LvId8iuLmutUAS1rZH85K3IQcJkM23k32b0o5OwBPVatUtvk09nqBTpt9cOzqP/2Q==" alt="Help" onMouseover="ddrivetip('This is the result achieved by performing the selected operation on the two entered notations.', 250)" ; onMouseout="hideddrivetip()">
Answer:
</td>
<td width="200" class="ChartTextCell">
<input type="text" id="ans" name="ans" size="25" value="" class="CalcOutFldOdd"/>
</td>
</tr>
<tr class="ChartRowEven">
<td width="400" class="ChartTextCellLeft">
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/2wBDAAYEBAQFBAYFBQYJBgUGCQsIBgYICwwKCgsKCgwQDAwMDAwMEAwODxAPDgwTExQUExMcGxsbHB8fHx8fHx8fHx//2wBDAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCAAPAA8DAREAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAABQP/xAAkEAACAgEDBAIDAAAAAAAAAAABAgMFBAYRIQAHEjETIhUjYf/EABYBAQEBAAAAAAAAAAAAAAAAAAIDBf/EACARAQAABgIDAQAAAAAAAAAAAAEAAgMREkExURNhceH/2gAMAwEAAhEDEQA/AL5OrLB+4uo6+zvdSmBLLKhra6kyX+UkZLqEVXYqqog4AH862SkeOVCXjcZjO5os3OoYr/z+J3mXSA1ZcZ9ZNj5SMWzJWnjaSvlbY/Yx/NE+xU7cMAffU5sWjniD89wy5UxybfkDrp3VEHd+1salYcvMaysHxMbCtqyHM/Y8vlskrZDKRGW81aLcDf0eRTOVpA9Gm0DCbyKduyAtHaOu4LvId8iuLmutUAS1rZH85K3IQcJkM23k32b0o5OwBPVatUtvk09nqBTpt9cOzqP/2Q==" alt="Help" onMouseover="ddrivetip('This is the answer as returned by the programming language this calculator is created in -- which may return a scientific notation, and/or an oddly rounded result. I provide it so you can compare it to the answer I came up with by manipulating text strings instead of calculating with numbers.', 250)" ; onMouseout="hideddrivetip()">
Raw answer:
</td>
<td width="200" class="ChartTextCell">
<input type="text" id="chk_ans" name="chk_ans" size="25" value="" class="CalcOutFldEven"/>
</td>
</tr>
<tr class="ChartRowEven">
<td colspan="2" class="CalcSummaryCell" id="summary">
</td>
</tr>
</tbody>
</table>
</form>
</body>
</html>





What is Scientific Notation?

Scientific notation (SN), also referred to as exponential notation, is a system developed to abbreviate numbers having an extreme number of digits and or decimal places.

In fact, you can think of SN as a short-hand method for expressing numbers.

To illustrate the usefulness of abbreviating numbers, suppose you need to communicate the following number to a number of interested parties:

123000000000000

Scientific notation allows you to abbreviate the above number to the following (note that the "E" or "e" simply stands for "power of 10 exponent"):

1.23 x 1014, which might also be expressed as 1.23E14 or 1.23e14

Can you see how the chances of the miscounting the number of zeros while the number is being passed around is eliminated with the use of SN?

Or, if you are communicating a very small number, like the following:

0.0000000000123

Then, scientific notation allows you to abbreviate the above decimal number to the following:

1.23 x 10-11, which might also be expressed as 1.23E-11 or 1.23e-11

Again, SN eliminates the chance of the exact number getting lost in translation.

How to Convert a Decimal Number to Scientific Notation

Without getting into the underlying math used to convert Decimals to SN, the conversion process is simply to move the decimal point left or right until the number becomes a number between 1 and 10.

The number of places you must move the decimal point to cause the number to fall between 1 and 10 becomes the power of 10 exponent.

If you need to move the decimal point to the left, the power of 10 exponent is positive. Otherwise, if you moved the decimal point to the right, the power of 10 exponent is negative.

So in the example above, to convert 123000000000000 to a scientific notation you simply move the decimal point to the left until the number to the left of the decimal point (coefficient) is a number from 1 to 9, which in this case is 14 places.


123000000000000 converts to the scientific notation 1.23 x 1014

1. 2 3 0 0 0 0 0 0 0 0 0 0 0 0
                             
  14 13 12 11 10 9 8 7 6 5 4 3 2 1

Or, to convert 0.0000000000123 to a scientific notation you simply move the decimal point to the right until the number to the left of the decimal point (coefficient) is a number from 1 to 9, which in this case is 11 places.


0.0000000000123 converts to the scientific notation 1.23 x 10-11

0. 0 0 0 0 0 0 0 0 0 0 1. 2 3
                           
  1 2 3 4 5 6 7 8 9 10 11    

How to Convert Scientific Notation to a Decimal Number

To convert SN to a decimal number, you simply start with the number left of the multiplication sign (or "E") and move the decimal point right (if positive exponent) or left (if negative exponent) the number of places indicated by the power of ten exponent.

As you move the decimal point simply add zeros for placeholders as needed.

So to convert the scientific notation 1.23 x 1014 to regular notation you simply move the decimal point 14 places to the right, as indicated by the exponent 14.


1.23 x 1014 converts to the decimal number 123000000000000

1 2 3 0 0 0 0 0 0 0 0 0 0 0 0
                             
  1 2 3 4 5 6 7 8 9 10 11 12 13 14

Or, to convert the scientific notation 1.23 x 10-11 to regular notation you simply move the decimal point 11 places to the left, as indicated by the exponent -11.


1.23 x 10-11 converts to the decimal number 0.0000000000123

. 0 0 0 0 0 0 0 0 0 0 1 2 3
                           
  11 10 9 8 7 6 5 4 3 2 1    

Finally, you might find it interesting to know that in building this converter I actually had to write the code so that the entered notations are converted to text strings because the scripting language I use to create calculators automatically returns large and small numbers in ... you guessed it ... scientific notation!

Of course, since I can't test the manipulation of text strings for all possible numbers, be sure to let me know the number you entered if it appears the converted result is "NaN" (Not a Number) or otherwise appears incorrect.

With that, let's use the Scientific Notation Converter to convert to and from a decimal number (also referred to as regular notation).

0 comments:

Post a Comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

FB Gadgets | Template Designed by Fatakat PhotosCoolBThemes.com
Code by : paid web directory

https://www.google.co.uk/search?q=site%3Ablogspot.com+fbgadgets