function ln() { out.value=Math.log(inp1.value); } function lg() { out.value=Math.log10(inp1.value); }