10 lines
166 B
JavaScript
10 lines
166 B
JavaScript
import { create, all } from 'mathjs';
|
|
const math = create(all);
|
|
math.import({
|
|
'if': function(pred, a, b) {
|
|
return pred ? a : b;
|
|
}
|
|
});
|
|
|
|
export default math;
|