Skip to content

Commit

Permalink
Update xen-dev-utils
Browse files Browse the repository at this point in the history
Use dedicated Fraction.sqrt()
  • Loading branch information
frostburn committed May 7, 2024
1 parent d6e4b4f commit 6713480
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
},
"dependencies": {
"moment-of-symmetry": "^0.4.2",
"xen-dev-utils": "^0.6.1"
"xen-dev-utils": "^0.7.0"
},
"engines": {
"node": ">=12.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/monzo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1568,7 +1568,7 @@ export class TimeMonzo {
* @returns The pitch-space half of the time monzo.
*/
sqrt() {
const residual = this.residual.pow(HALF);
const residual = this.residual.sqrt();
if (!residual) {
return new TimeReal(this.timeExponent.valueOf(), this.valueOf()).sqrt();
}
Expand Down

0 comments on commit 6713480

Please sign in to comment.