Skip to main content
8-Gravel
January 5, 2024
Solved

Units not compatible

  • January 5, 2024
  • 2 replies
  • 1816 views

Is temperature units computable with pressure within equation in Prime? 

Best answer by Fred_Kohlhepp

To Werner's point:  there can be hugely different results.

 

Revised sheet attached,  Always be careful using temperature scales.

2 replies

25-Diamond I
January 5, 2024

Its absolutely unclear to me what you are trying to achieve!

What are the units of the values in P?

Have you read the help concerning the "linterp" function?
This function returns a function, not a value.

And of course the first argument (a column vector) must be of the same dimension (any temperature unit in your case) as the third argument (independent variable of the function).

So this would work OK

Werner_E_0-1704466246642.png

but I doubt that your intention is to interpolate between two equal values (2).

 

23-Emerald I
January 6, 2024

linterp works on column vectors.  Try transposing P.

 

Example in Prime 4 Express, using home-built linterp.  (Prime will allow matrices with alternate units.)

25-Diamond I
January 6, 2024

Careful! T/(1 °F) is NOT 277 as you might have expected.

23-Emerald I
January 6, 2024
Yes! I could claim that we needed to leave something for the questioner to correct . . .