$('#result').val(Math.sqrt(p(p-valA)(p-valB)(p-valC)))
$('#result').val(Math.sqrt(p *!***/!* (p-valA) *!***/!* (p-valB) *!***/!* (p-valC)))