arguments inside the "augment" function
Hello,
I'm using Mathcad 14 to write my diploma thesis. I ran into trouble optimizing existing code. The for-loops don't run properly as soon as I work with more than approximately 100.000 points while matrix-operations are working well beyong 1.000.000 points. This is why I'm trying to rewrite the existing code (which heavily depends on for-loops) with matrix and array-operations. It is working pretty good so far, but I keep running into trouble usin the "augment"-function.
This is the situation:
I have a meshed surface which is copied (n-1)-times using a parameterized command. The coordinates of the points are being saved in a nested array called "Array". "Array" has three subarrays; one for each cartesian coordinate-direction. Each of these subarrays contains n subsubarrays (the initial configuration is counted as well) each containing the coordinates of one configuration.
If this is plotted Mathcad is unable to plot a single 3D-surface. This is why I need to rearrange them using the augment-function ("erweitern" in German)
matrix:=augment(subsubarray[0,subsubarray[1...subsubarray[n)
Manually entering the argument of the "augment"-function works, but I need to parameterize this as well (Otherwise in case the input-data is changed only a fraction of the needed results is displayed withoug manually adjusting the argument of the augment-function).
Here are some things I tried and the results:
- Creating a list i:=0..n and applying it to my subsubarrays[i. This is exactly the same as the input
- Using a for-loop to apply i similarily to my subsubarray's name....Same result.
Does anybody know how I can automatically generate a list of this kind:
subsubarray[0 , subsubarray[1 , ... , subsubarray[n
This list needs to be divided by "," and without using a for-loop (because they create memory-overflows quite easily)
Thanks in advance!
Jon

