Skip to content

Instantly share code, notes, and snippets.

@ghalimi
Created January 13, 2013 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghalimi/4524831 to your computer and use it in GitHub Desktop.
Save ghalimi/4524831 to your computer and use it in GitHub Desktop.
ERFC Function
// Copyright (c) 2012 Sutoiku, Inc. (MIT License)
function ERFC(x) {
// Return error if x is not a number
if (isNaN(x)) return '#VALUE!';
// Return ERFC using jStat [http://www.jstat.org/]
return jStat.erfc(x);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment