Question
Range variables in local definition
Range variables can be used to assign multiple vector or matrix values. For example:
M[i := i^2
A[i := B[j,i+1
However, the same construct does not work with a local definition--in a function definition, for example.
M[i <- i^2
Is this behavior expected? Do I really need to use a for loop to reproduce the behavior for local definitions inside a function? Or is it a bug? I consider it a bug since there is no apparent reason this shouldn't work. I should be able to do the same thing inside a function that I do in the main worksheet.
I'm using Mathcad 14.0 M030.
M[i := i^2
A[i := B[j,i+1
However, the same construct does not work with a local definition--in a function definition, for example.
M[i <- i^2
Is this behavior expected? Do I really need to use a for loop to reproduce the behavior for local definitions inside a function? Or is it a bug? I consider it a bug since there is no apparent reason this shouldn't work. I should be able to do the same thing inside a function that I do in the main worksheet.
I'm using Mathcad 14.0 M030.
