feat:node-modules
This commit is contained in:
44
node_modules/mathjs/lib/cjs/function/arithmetic/multiplyScalar.js
generated
vendored
Normal file
44
node_modules/mathjs/lib/cjs/function/arithmetic/multiplyScalar.js
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.createMultiplyScalar = void 0;
|
||||
var _factory = require("../../utils/factory.js");
|
||||
var _index = require("../../plain/number/index.js");
|
||||
const name = 'multiplyScalar';
|
||||
const dependencies = ['typed'];
|
||||
const createMultiplyScalar = exports.createMultiplyScalar = /* #__PURE__ */(0, _factory.factory)(name, dependencies, _ref => {
|
||||
let {
|
||||
typed
|
||||
} = _ref;
|
||||
/**
|
||||
* Multiply two scalar values, `x * y`.
|
||||
* This function is meant for internal use: it is used by the public function
|
||||
* `multiply`
|
||||
*
|
||||
* This function does not support collections (Array or Matrix).
|
||||
*
|
||||
* @param {number | BigNumber | bigint | Fraction | Complex | Unit} x First value to multiply
|
||||
* @param {number | BigNumber | bigint | Fraction | Complex} y Second value to multiply
|
||||
* @return {number | BigNumber | bigint | Fraction | Complex | Unit} Multiplication of `x` and `y`
|
||||
* @private
|
||||
*/
|
||||
return typed('multiplyScalar', {
|
||||
'number, number': _index.multiplyNumber,
|
||||
'Complex, Complex': function (x, y) {
|
||||
return x.mul(y);
|
||||
},
|
||||
'BigNumber, BigNumber': function (x, y) {
|
||||
return x.times(y);
|
||||
},
|
||||
'bigint, bigint': function (x, y) {
|
||||
return x * y;
|
||||
},
|
||||
'Fraction, Fraction': function (x, y) {
|
||||
return x.mul(y);
|
||||
},
|
||||
'number | Fraction | BigNumber | Complex, Unit': (x, y) => y.multiply(x),
|
||||
'Unit, number | Fraction | BigNumber | Complex | Unit': (x, y) => x.multiply(y)
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user