Scalar subtracts from every matrix entry.
Matrix Input
Fill the grid, or paste values (spaces, commas, or new lines).
Example Data Table
| Matrix (A) | Scalar (s) | Result (B = A − s) |
|---|---|---|
| [ [5,0,-3], [2,7,4], [1,-6,9] ] | 2 | [ [3,-2,-5], [0,5,2], [-1,-8,7] ] |
| [ [1.5,2], [0,-4] ] | -1 | [ [2.5,3], [1,-3] ] |
Formula Used
B = A − s
For each element in matrix A, subtract the scalar s:
bᵢⱼ = aᵢⱼ − s.
How to Use
- Choose rows and columns for your matrix.
- Enter the scalar value you want to subtract.
- Fill the grid, or paste values and apply.
- Press Subtract Scalar to view results above.
- Download CSV or PDF if you need a report.
FAQs
1) What does scalar subtraction mean for a matrix?
It subtracts the same number from every entry. The matrix size stays the same, only values change based on the chosen scalar.
2) Can I use negative or decimal scalars?
Yes. Negative scalars effectively add a value. Decimals and scientific notation are accepted as long as each entry is a valid number.
3) What matrix sizes are supported here?
You can calculate from 1×1 up to 12×12. This keeps the page fast while covering most homework, engineering, and data tasks.
4) Why do I see an input error for one cell?
That cell has a blank or non-numeric value. Replace it with a valid number, then submit again to compute a clean result.
5) How does the paste feature work?
Paste values separated by spaces, commas, or new lines. The tool fills the grid row by row up to your selected matrix size.
6) Will CSV and PDF match the on-screen result?
Yes. Exports are generated from the same computed matrix. CSV contains rows of values, and PDF contains a readable text report.
7) What is a common use case for this operation?
It’s useful for shifting datasets, centering values, applying offsets in transformations, and adjusting baseline readings in lab and sensor data.