From 179af245a287bf8d168fc7d01b6810540859835f Mon Sep 17 00:00:00 2001 From: Skyhigh173 <100467674+Skyhigh173@users.noreply.github.com> Date: Thu, 10 Aug 2023 12:01:13 +0800 Subject: [PATCH] fix lint --- extensions/Skyhigh173/complexnumber.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/Skyhigh173/complexnumber.js b/extensions/Skyhigh173/complexnumber.js index 9c0f347f78..bffbe9faea 100644 --- a/extensions/Skyhigh173/complexnumber.js +++ b/extensions/Skyhigh173/complexnumber.js @@ -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() { @@ -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) { @@ -204,7 +204,7 @@ } cbrt() { - return this.pow(new ComplexNumber(1/3)); + return this.pow(new ComplexNumber(1 / 3)); } sinh() {