Replies: 1 comment
-
Thanks for letting us know, I've fixed the example. About the performance:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, this part of the code in the documentation seems out of date
https://mathjs.org/docs/datatypes/matrices.html#arrays-and-matrices
Suppose I have an array t, and I want to use the evaluate function to perform sqrt operation on each number in it, such as evaluate("sqrt(t)"). This expression is grammatically wrong.
So I tried the following code. I think the expression tree we built can be reused in this operation. Besides using a for loop, is there any more efficient way?
Beta Was this translation helpful? Give feedback.
All reactions