Skip to content

Commit

Permalink
Merge pull request #2 from randyheaton/master
Browse files Browse the repository at this point in the history
new equal
  • Loading branch information
StevenGubkin committed Jul 29, 2015
2 parents 0b1375a + 1cb46cb commit 72ca6e5
Show file tree
Hide file tree
Showing 12 changed files with 7,567 additions and 45 deletions.
2 changes: 1 addition & 1 deletion lib/ast-to-complex-function.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var complex_math_functions = {
"gamma": function(operands) { return operands[0].gamma(); },

"^": function(operands) { return operands[0].power(operands[1]); },
"abs": function(operands) { return new ComplexNumber( operands[0].modulus(), 0 ); },
"abs": function(operands) {return operands[0].power(new ComplexNumber(2,0)).log().multiply(new ComplexNumber(.5,0)).exp();},
"apply": function(operands) { return NaN; },
};

Expand Down
Loading

0 comments on commit 72ca6e5

Please sign in to comment.