Is there a faster way to create an Array using a program loop?
I'm not sure what I'm doing wrong but Mathcad is taking far longer than I would expect to create simple arrays.
Goal: create an array with 86,400 rows, all values are 0
For example, I can make an array like that immediately with B[86400 := 0.
However if i try to do the same thing using a while or for loop it takes nearly a minute.
C:] t<--86400
] j<--0
] while j<t+1
] ] C[j <--0
] ] j<--j+1
] C
Now the program I'm actually trying to write is a little more complicated but I need to write arrays/matrices using programs. My current file takes 20 min to run which is far to much considering that the calculations are not intense. I figure I must be making mathcad work harder than necessary. What am I doing wrong?


