Skip to content

Commit

Permalink
Correct test
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmasson committed May 16, 2021
1 parent 9c2909e commit d10305b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/math.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ function root( x, y ) { return pow( x, div( 1, y ) ); }

function surd( x, n ) {

if ( isArbitrary(x) || isArbitrary(n) ) throw Error( 'Surd requires real inputs' );
if ( isComplex(x) || isComplex(n) ) throw Error( 'Surd requires real inputs' );

if ( !isInteger(n) ) throw Error( 'Second parameter of surd must be integer' );

Expand Down
2 changes: 1 addition & 1 deletion src/operators.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ function root( x, y ) { return pow( x, div( 1, y ) ); }

function surd( x, n ) {

if ( isArbitrary(x) || isArbitrary(n) ) throw Error( 'Surd requires real inputs' );
if ( isComplex(x) || isComplex(n) ) throw Error( 'Surd requires real inputs' );

if ( !isInteger(n) ) throw Error( 'Second parameter of surd must be integer' );

Expand Down

0 comments on commit d10305b

Please sign in to comment.