//DO NOT REMOVE THIS COPYWRITE INFO! //Exponential Expression Calculator //By Daniel C. Peterson //Web Winder Website Services, 1997-2006 All Rights Reserved. //Distribution, editing or reselling of this script is strictyly prohibited //without expressed written permission from Daniel C. Peterson. //For commercial grade (professional) versions of this and many other //calculators, visit http://www.webwinder.com.
function computeForm(form)
{ var fbase = form.base.value;
var fexp = form.exp.value;
var fequals = form.equals.value;
var count = 1;
if(fexp < 0) {fexp = -1 * fexp; } else {fexp = fexp; } while(count < fexp) { fbase = fbase * form.base.value; count = count + 1; if(count > 600) { break; } else { continue; }
}
if(form.exp.value < 0) {fequals = 1 / fbase; } else if (form.exp.value == 0) {fequals = 1; } else {fequals = fbase; } form.equals.value = fequals; } function clearForm(form) { form.base.value = ""; form.exp.value = ""; form.equals.value = ""; }