Skip to content

Commit 9431418

Browse files
committed
fix: add embedded docs for the deprecated physical constant coulomb, see #3472
1 parent d3f3643 commit 9431418

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

HISTORY.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# History
22

3+
# unpublished changes since 14.5.1
4+
5+
- Fix: add embedded docs for the deprecated physical constant `coulomb`,
6+
see #3472.
7+
8+
39
# 2025-05-28, 14.5.1
410

511
- Fix: #3482 mathjs throwing an error related to `BigInt` when loading in

src/expression/embeddedDocs/embeddedDocs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ export const embeddedDocs = {
295295
magneticConstant: { description: 'Magnetic constant (vacuum permeability)', examples: ['magneticConstant'] },
296296
electricConstant: { description: 'Electric constant (vacuum permeability)', examples: ['electricConstant'] },
297297
vacuumImpedance: { description: 'Characteristic impedance of vacuum', examples: ['vacuumImpedance'] },
298+
coulomb: { description: 'Coulomb\'s constant. Deprecated in favor of coulombConstant', examples: ['coulombConstant'] },
298299
coulombConstant: { description: 'Coulomb\'s constant', examples: ['coulombConstant'] },
299300
elementaryCharge: { description: 'Elementary charge', examples: ['elementaryCharge'] },
300301
bohrMagneton: { description: 'Bohr magneton', examples: ['bohrMagneton'] },

test/unit-tests/expression/function/help.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let mathDocs = math.create(math.all)
66
const originalConfig = mathDocs.config()
77
// Add names to the skipDocs array if they are not meant to have embedded docs
88
const skipDocs = new Set(['import', 'addScalar', 'divideScalar', 'equalScalar', 'multiplyScalar',
9-
'subtractScalar', 'apply', 'replacer', 'reviver', 'coulomb'])
9+
'subtractScalar', 'apply', 'replacer', 'reviver'])
1010

1111
// Add names to skipExamples if their examples in the embedded docs contain acceptable errors
1212
const skipExamples = new Set([])

0 commit comments

Comments
 (0)