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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Inverse Temperature Units in Prime?

JeffH1
16-Pearl

Inverse Temperature Units in Prime?

In Mathcad 15 and earlier, there was an inverse temperature unit (actually a post-fix unary operator) for /°F and /°C.  These operators would convert a temperature to the desired units and then strip the units off.   i.e.  if T:=1100°F, then T /°F = 1100 (no units)


If I convert a Mathcad 15 worksheet with this construct in it to Prime 3.0, I get the /°F operator/unit in the Prime worksheet and it appears to work correctly.


However, this "unit" is not on the Units drop down menu or the Operators drop down and for the life of me, I can't figure out how to type this unit/operator in Mathcad Prime 3.0.  I've tried using T · "/°F" to get the string literal and then removing the quotes and setting the Units label, but I get an error that this has to be a scalar.


Anybody know how to do this?  I can't find it in the help system either - it is silent on /°F.


Jeff

ACCEPTED SOLUTION

Accepted Solutions
JeffH1
16-Pearl
(To:JeffH1)

Well, I figured out one method:

  1. Type the number or variable
  2. Use <Ctrl>-<Shift>-U to get the "scaling" operator
  3. Press the double quote to type a string literal
  4. Between the quotes, type /°F  -  <Alt>-0176 on numeric keypad to get degree symbol
  5. Delete one of the quotes
  6. Press <Ctrl>-Q twice to change the label to a Unit

Ugh!  Is there an easier way?  Is this Unit/Operator hiding on a toolbar that I'm not seeing?

Jeff

View solution in original post

17 REPLIES 17
JeffH1
16-Pearl
(To:JeffH1)

Well, I figured out one method:

  1. Type the number or variable
  2. Use <Ctrl>-<Shift>-U to get the "scaling" operator
  3. Press the double quote to type a string literal
  4. Between the quotes, type /°F  -  <Alt>-0176 on numeric keypad to get degree symbol
  5. Delete one of the quotes
  6. Press <Ctrl>-Q twice to change the label to a Unit

Ugh!  Is there an easier way?  Is this Unit/Operator hiding on a toolbar that I'm not seeing?

Jeff

I think we do not need "inverse temperatures" now in Prime.

See please how we can change units on plots in Mathcad 15 and Prime:

(Saturated water/steam pressure as function of temperature - DLL from www.wsp.ru)

Mathcad 15

invC15.png

Prime 3.0

invCPrime.png

For USA

invTPrimeUSA.png

Some of us in USA actually do use K and °C.  

Valery,

That works great for plotting the axis variables, but try and put a Variable with units on one of the chart markers.  It doesn't work.

Also, I have Custom Functions that require unitless parameters of temperature and pressure, but the temperature has to be represented in °F.

I'm sure that there are even more reasons for stripping units off of a temperature, but leaving the value in Fahrenheit or Celsius.

This function is supported in Prime, it's just not on the menus.  I think it should be.

Jeff

Jeff Henning wrote:

Valery,

That works great for plotting the axis variables, but try and put a Variable with units on one of the chart markers.  It doesn't work.

Sorry, It works:

invCPrimeMarker1.png

Well, sure.  You put all the math in there to convert it.  My point was that listing just t1 does not work.  Using t1 /°F would be far more readable and self explanatory as to what units were being used.

There's still a need for the /°F unit and it should be on the toolbar - especially since it is actually coded in to Prime, but there's no easy way to get to it.

Jeff

Jeff Henning wrote:

Using t1 /°F would be far more readable

and ...  more stupid. Sorry.

Dividing a value by a unit expression does two things:

  1. It converts the value to those units
  2. It strips the units off the number

/°F should do the same thing, 1) convert the temperature value to °F, and 2) strip the units off.  This was the purpose of the /°F unary operator.

It's not stupid, it's functional.

RichardJ
19-Tanzanite
(To:JeffH1)

Valery means the notation is not strictly correct. Temperature/K is mathematically correct, and yields a pure number that is correctly scaled. However, Temperature/°F is not strictly correct, because you cannot switch temperature scales with a simple scaling operation. Nevertheless, we need the inverse operation in Mathcad, and in that context I can't think of a better notation for the function than /°F.

RichardJ
19-Tanzanite
(To:JeffH1)

I agree with you. It should be on the toolbar. I actually didn't realize it was even implemented, and is on my (long) list of complaints about Prime.

As far as axis variables goes, many publications do not accept the form T (K). They only accept the form T/K, because that is mathematically correct.

Richard Jackson wrote:

I agree with you. It should be on the toolbar. I actually didn't realize it was even implemented, and is on my (long) list of complaints about Prime.

As far as axis variables goes, many publications do not accept the form T (K). They only accept the form T/K, because that is mathematically correct.

But T/°C or T/°F or  T/°Re is not correct

But T/°C or T/°F or  T/°Re is not correct

That's true, and they are not allowed. I was speaking more generally, where units on axis variables must be written in the form Mass/kg, not Mass (kg). There are a few exceptions, such as some temperature units, dB, etc.

Jeff Henning wrote:


Anybody know how to do this?  I can't find it in the help system either - it is silent on /°F.


Jeff

invCPrimeMarkerF.png

 

Jeff Henning wrote:

Is it laughter or joy?

Better - a correct answer ( - это намек! Три очка для Очкова!)

Laughter for your providing "USA" units again....

Announcements

Top Tags