all,
I've been reading this thread and have still more thoughts. The issue of units was reaised earlier. I'm trying to work up a Mathcad worksheet to calculate wind loads on a building using ASCE 7-02. I'm finding this about units in Mathcad.
1) Most of my input for this is in length units, and one item is velocity. I have to collect all my input and put it into one section of the worksheet. This is not a problem.
2) One of the inputs is a table of specific height values for which wind pressures will be calculated. This is numbers put into a matrix with 1row X 15 cols. I've multiplied this by the units ft in English units. There are several places where I put these numbers into other matricies, always so I can output a table of values. Whereever I do this, I have to first divide by the units, because I can't put numbers with units attached into a matrix, there can only be "bare" numbers. So, if I change to metric input, its easy to change the units on the input table, but for those places where the numbers must be stripped of units, then I'm wrong until I go somewhere else and change the divide by units before using bare numbers.
3) there is one critical number, a constant that is used in the calculation, it is a multiplier that has the value .00256 in English units, and 0.618 if using metric. I don't want to have to input this number, the worksheet should be able to use the correct number. For this case, I can set a veriable called "unitsflag" to English or Metric, and then select the proper constant.
4) one of my tables has text placed over the top, with text displaying column headings and units. These need to change depending on english or metric. I'm going to try the units flag on this one too, I don't know if the text spacing and formatting will carry through though.
Maybe the units flag can be extended to all the other units as well, for example, depending on the "unitsflag" value, then "units1" = 1*ft or 1*m, "units2" = 1*mph or 1*m/sec, "units3" = 1*psf or 1*N/m^2. But that means a lot of units that are showing up as unit1, unit2 or unit3. Then I still have to go to output values and manually type in the correct english or metric units.
So, its starting to look like the units are as hard with Mathcad as it is with Excel.
Anyone else have ideas about the above?
regards,
chichuck