Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyhigh173 authored Aug 10, 2023
1 parent 03efb16 commit 179af24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extensions/Skyhigh173/complexnumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
if (i == 1) return prefix + 'i';
if (i == -1) return '-i';

return `${i > 0 ? prefix: ''}${i}i`;
return `${i > 0 ? prefix : ''}${i}i`;
}

toStr() {
Expand Down Expand Up @@ -185,7 +185,7 @@

ln() {
// 1/2*ln(ppow2)+ i*arg(z)
return new ComplexNumber(1/2 * Math.log(this.ppow2()), this.arg());
return new ComplexNumber(1 / 2 * Math.log(this.ppow2()), this.arg());
}

pow(that) {
Expand All @@ -204,7 +204,7 @@
}

cbrt() {
return this.pow(new ComplexNumber(1/3));
return this.pow(new ComplexNumber(1 / 3));
}

sinh() {
Expand Down

0 comments on commit 179af24

Please sign in to comment.