Skip to content

Commit

Permalink
vector toUnitMultiplier
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarmein-ts committed Sep 29, 2024
1 parent bf8522d commit e29b0eb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions nerdamer.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -11463,6 +11463,11 @@ var nerdamer = (function (imports) {
}, undefined, this);
},

toUnitMultiplier: function() {
this.m = new Frac(1);
return this;
},

// Returns the (absolute) largest element of the vector
max: function () {
var m = 0, n = this.elements.length, k = n, i;
Expand Down Expand Up @@ -11652,6 +11657,11 @@ var nerdamer = (function (imports) {
}
return m;
},
toUnitMultiplier: function() {
this.m = new Frac(1);
return this;
},

// ported from Sylvester.js
invert: function () {
if(!this.isSquare())
Expand Down

0 comments on commit e29b0eb

Please sign in to comment.