cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

mathcad 13 fails to calculate

mkoronowski
1-Newbie

mathcad 13 fails to calculate

i had a simple sheet to calculate the compressor
inducer geometry.

the syntax for the density definition was

rhoin := 0.0173 lb/ft^3 and it looked like this

rhoin = 0.0173 lb/ft^3

to update the sheet, i tried to import a data
string/vector. so the import definition looks like
this;

rhoin := data <1>*lb/ft^3

but the parameter looks like;

rhoin = (0.0173)lb/ft^3 and the root solver stops

what do these brackets mean? what did i do wrong?
4 REPLIES 4

Because you extracted a 1x1 matrix instead of a scalar, probably.


TTFN,
Eden

this was never a problem with earlier releases like
12. Additionally, i think there are sheets where it
does work.

there has to be a way to equate a single element in
an array to a single variable.

possibly the inverse of creating a XxX array out of
vectors using the functions augment and sort

found a work around...

switched from the root function

to the find function using a given

now my parameters defined from array/vector elements
works perfect!

You can always use subsripting to extract a single element from an array as a scalar. This works from one element arrays too.

Mathcad's handling of one element arrays varies from version to version. Some ambiguous constructs such as multiplying two 1x1 arrays (is that two 1x1 matrices or two one element vectors?) can be scalar in some versions and array in other versions. A bloody nuisance that sometimes requires special case handling (if statements) to get something that works across multiple Mathcad versions.
__________________
� � � � Tom Gutman
Announcements

Top Tags