minus(x: number,y: number,): number
Subtraction X - Y.
Subtracts two numbers, arrays, or matrices element-wise. Handles mixed inputs of scalars, arrays, and matrices.
Subtract two arrays element-wise
Subtract two arrays element-wise
import { assertEquals } from "jsr:@std/assert"; assertEquals(minus([5, 6, 4], [3, 1, 2]), [2, 5, 2]);
Subtract a number from each element of an array
Subtract a number from each element of an array
import { assertEquals } from "jsr:@std/assert"; assertEquals(minus([15, 16, 14], 10), [5, 6, 4]);
minus(x: number,y: array,): array
Subtraction X - Y.
Subtracts two numbers, arrays, or matrices element-wise. Handles mixed inputs of scalars, arrays, and matrices.
Subtract two arrays element-wise
Subtract two arrays element-wise
import { assertEquals } from "jsr:@std/assert"; assertEquals(minus([5, 6, 4], [3, 1, 2]), [2, 5, 2]);
Subtract a number from each element of an array
Subtract a number from each element of an array
import { assertEquals } from "jsr:@std/assert"; assertEquals(minus([15, 16, 14], 10), [5, 6, 4]);
y: array
The second operand, can be a number, array, or matrix.
The result of subtracting y from x.
minus(x: array,y: number,): array
Subtraction X - Y.
Subtracts two numbers, arrays, or matrices element-wise. Handles mixed inputs of scalars, arrays, and matrices.
Subtract two arrays element-wise
Subtract two arrays element-wise
import { assertEquals } from "jsr:@std/assert"; assertEquals(minus([5, 6, 4], [3, 1, 2]), [2, 5, 2]);
Subtract a number from each element of an array
Subtract a number from each element of an array
import { assertEquals } from "jsr:@std/assert"; assertEquals(minus([15, 16, 14], 10), [5, 6, 4]);
x: array
The first operand, can be a number, array, or matrix.
The result of subtracting y from x.
minus(): array
Subtraction X - Y.
Subtracts two numbers, arrays, or matrices element-wise. Handles mixed inputs of scalars, arrays, and matrices.
Subtract two arrays element-wise
Subtract two arrays element-wise
import { assertEquals } from "jsr:@std/assert"; assertEquals(minus([5, 6, 4], [3, 1, 2]), [2, 5, 2]);
Subtract a number from each element of an array
Subtract a number from each element of an array
import { assertEquals } from "jsr:@std/assert"; assertEquals(minus([15, 16, 14], 10), [5, 6, 4]);
The result of subtracting y from x.
minus(x: number,y: matrix,): matrix
Subtraction X - Y.
Subtracts two numbers, arrays, or matrices element-wise. Handles mixed inputs of scalars, arrays, and matrices.
Subtract two arrays element-wise
Subtract two arrays element-wise
import { assertEquals } from "jsr:@std/assert"; assertEquals(minus([5, 6, 4], [3, 1, 2]), [2, 5, 2]);
Subtract a number from each element of an array
Subtract a number from each element of an array
import { assertEquals } from "jsr:@std/assert"; assertEquals(minus([15, 16, 14], 10), [5, 6, 4]);
y: matrix
The second operand, can be a number, array, or matrix.
The result of subtracting y from x.
minus(x: matrix,y: number,): matrix
Subtraction X - Y.
Subtracts two numbers, arrays, or matrices element-wise. Handles mixed inputs of scalars, arrays, and matrices.
Subtract two arrays element-wise
Subtract two arrays element-wise
import { assertEquals } from "jsr:@std/assert"; assertEquals(minus([5, 6, 4], [3, 1, 2]), [2, 5, 2]);
Subtract a number from each element of an array
Subtract a number from each element of an array
import { assertEquals } from "jsr:@std/assert"; assertEquals(minus([15, 16, 14], 10), [5, 6, 4]);
x: matrix
The first operand, can be a number, array, or matrix.
The result of subtracting y from x.
minus(): matrix
Subtraction X - Y.
Subtracts two numbers, arrays, or matrices element-wise. Handles mixed inputs of scalars, arrays, and matrices.
Subtract two arrays element-wise
Subtract two arrays element-wise
import { assertEquals } from "jsr:@std/assert"; assertEquals(minus([5, 6, 4], [3, 1, 2]), [2, 5, 2]);
Subtract a number from each element of an array
Subtract a number from each element of an array
import { assertEquals } from "jsr:@std/assert"; assertEquals(minus([15, 16, 14], 10), [5, 6, 4]);
The result of subtracting y from x.