Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
  <script src="http://redhivesoftware.com/calculators/math-expression-evaluator.min.js"></script>
  </head>
<body>
</body>
</html>
  <script>
  print("2");  //just a number d
  print("sin(2)");  //sin function of 2 
  print("2(3+4)");  //sin function of 2 without parenthesis
  print("Pi1,15,n");    //Sigma function 
  print("Sigma1,Sigma1,3,n,n");   //Sigma function inside another Sigma function without parenthesis 
  function print(str){
      document.body.appendChild(document.createTextNode(str+" evaluates to "+mexp.eval(str)));
      document.body.appendChild(document.createElement("hr"));
    
    }
</script>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
ankit2038pro
0viewers