On 10/20/2009 4:54:21 PM, jmG wrote:
>Try what I just posted, as is
>[Fibonacci03.gif]
>
>jmG
I tried that example but it also depends on the "MC11" compatibility option, as soon as I switch it to "MC12" it stops working.
On 10/20/2009 5:01:03 PM, jmG wrote:
>If that one works, why to re-code ?
>Multiple array should do something
>useful.
>
>jmG
Because sequential assignments won't be supported in future versions, there's even a "Migration guide" that explains the following:
"Please rewrite worksheets that depend on these switches to a version-neutral construction, as backwards-compatible switches will be maintained only through the Mathcad 14 release."
"The Compatibility tab allows you to retain certain behaviors from previous versions of Mathcad until your worksheets have been migrated to version-neutral expressions. When Mathcad 11 or older worksheets are opened, the switches are set to mimic Mathcad 11 behavior. The same is true for Mathcad 12 worksheets. The Compatibility switches will be deprecated after several versions; they are intended to give you time to migrate your worksheets to version-neutral expressions."
So, what if I'm actually interested in performing the calculations on a sequential basis? Tom's suggestion of applying algebra is not attractive for more complex scenarios, e.g. given
A(0) = 0
FOR N = 1 TO 10
B(N) = A(N-1)
C(N) = some long function of B(N)
D(N) = yet another long function of C(N)
.
.
.
Z(N) = function of Y(N)
A(N) = function of Z(N)
NEXT N
Solving this with the multiple array scheme on a parallel assignment basis ("MC12" option) would require substitution of Z(N),Y(N)...D(N),C(N),B(N) into A(N) which in turn would result in a extremely large expression.
Seems like I'll resort to Stuart's procedure, unfortunately it doesn't support combination of different units.
Regards.