| |
 |
|
|
Science Forum Index » Math - Symbolic Forum » Mathcad 2001 Doing calculations in parallel
Page 1 of 1
|
| Author |
Message |
| Ed F |
Posted: Fri Nov 10, 2006 4:13 am |
|
|
|
Guest
|
Hi,
I dusted off my old Mathcad 2001 Pro disk to solve some lengthy solar
gain calculations. I can't figure out if Mathcad can't do what I want
or if the documentation just sucks. In fairness, some help pages are
broken for some reason so I could be missing the answer.
I want to run through all the calculations with a set of, say, 4
numbers, at once, rather than doing it over 4 times (because I will
have 15 variations each with 4 numbers so it would be 60 runs).
Help claims:
"Doing calculations in parallel
Any calculation Mathcad can perform with single values, it can also
perform with arrays of values. There are two ways of doing this:
By iteration over each element using range variables as subscripts.
By using the vectorize operator which allows Mathcad to perform the
same operation efficiently on each element of a vector or matrix. "
They give an example that starts
i:=0..3
f(x,i):=x (sub)i
I entered the right side as x.i and got variable not defined. It
looks the same but am I missing something?
It goes on
b:= (a vector with 1 column)
and thay evaluate f(b,i)= to get a 4-element vector.
Like I said, I can't even get their example to work. But could I
possibly do that with something like
f(x,i):= [x(sub)i+1]/[x(sub)i-1], and use a b vector with any 4 numbers
and evaluate f(b,i)= ?
TIA for any help,
Ed |
|
|
| Back to top |
|
| Guest |
Posted: Fri Nov 10, 2006 6:42 am |
|
|
|
|
Quote: They give an example that starts
i:=0..3
f(x,i):=x (sub)i
I entered the right side as x.i and got variable not defined. It
looks the same but am I missing something?
Wrong type of subscript. Try x[i (i.e. a left square bracket instead
of a period)
S |
|
|
| Back to top |
|
| |
|
Page 1 of 1
All times are GMT - 5 Hours
The time now is Thu Jan 08, 2009 6:19 pm
|
|