Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Here's another approach ...
Even works in Prime 1.0
Stuart
Yes, we can have here only one loop for!
We have in Mathcad Prime a new operator returns a matrix row:
One additional quastion.
Can you convert a matrix into a vector (create a matrix2vector function) with one loop for?
I can do it in Mathcad 15 but not in Mathcad Prime.
Valery Ochkov wrote:
One additional quastion.
Can you convert a matrix into a vector (create a matrix2vector function) with one loop for?
I can do it in Mathcad 15 but not in Mathcad Prime.
Yes. My standard vec function does it with only loop (and uses recursion to flatten any nested elements), but I imagine this isn't the один дополнительный) вопрос that you really had in mind?
Stuart
One loop for without recursion:
I see first time in Mathcad 15/Prime that var:=... var= and var:=...= is not equal:
Valery Ochkov wrote:
I see first time in Mathcad 15/Prime that var:=... var= and var:=...= is not equal:
An even bigger problem, and a far more frustrating one, is that whereas I can evaluate
vec(0,0,1..1) in Mathcad 11..15, I can't even enter a range definition (x,y..z) as an argument in Prime 1.0.
Stuart