Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tabled values returning non-tabled results

Status
Not open for further replies.

lonicus

Materials
Feb 26, 2007
2
For some reason whenever I multiply one tabel by another Mathcad 13 is retuning me the sum of all values instaed of another table. I have no pronblem with any other simple operators, why is it doing this?
 
Replies continue below

Recommended for you

which operator did you use?

Cheers

Greg Locock

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
 
multiply, or "*"

basicaly, I have defined a table as a variable D, if i multiply D by itself, or any other table I get a result like the following:

D*D=10.451, where D=1, 3, 4, 2, 6,... (values are made up here but you get the idea)

or D*d=2.345 where D is the same as above but d=3,6,1,4,8 or such

I want a result that reads D*D=1,6,8,4,36... (value 1 gets multipled by itsef, then value 2 etc..

thanks for the help
 
You need to do it as an indexed operation.

TTFN

Eng-Tips Policies FAQ731-376


 
Tables are basically the same as matrices. Your single column tables are vectors which when multiplied (dot product) yield a scalar value.

To get a table that has each element as the multiple of the elements of the original tables, use the vectorize operator, Ctrl+- after getting the editing lines (the little blue angle) under and to the right of both variables.

I guess that is what you want, even though in your example, 3*3 does not equal 6 and 4*4 does not equal 8.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor