We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug From the docs
Add two or more values, x + y. For matrices, the function is evaluated element wise... math.add(x, y, z, ...)
math.add(x, y, z, ...)
But the function takes exactly 2 arguments according to TS definition:
mathjs/types/index.d.ts
Line 1038 in 02f195f
Same issue affects multiply
To Reproduce const x = math.add(1, 2, 3); Transpiler error: Expected 2 arguments, but got 3.
const x = math.add(1, 2, 3);
Expected 2 arguments, but got 3.
If you suppress the error with @ts-ignore the function works as expected.
@ts-ignore
The text was updated successfully, but these errors were encountered:
2e427ec
Thanks for reporting, will be fixed via 2e427ec (not yet published).
Sorry, something went wrong.
Fix published now in v12.4.2
v12.4.2
No branches or pull requests
Describe the bug
From the docs
But the function takes exactly 2 arguments according to TS definition:
mathjs/types/index.d.ts
Line 1038 in 02f195f
Same issue affects multiply
To Reproduce
const x = math.add(1, 2, 3);
Transpiler error:
Expected 2 arguments, but got 3.
If you suppress the error with
@ts-ignore
the function works as expected.The text was updated successfully, but these errors were encountered: