Skip to main content
23-Emerald I
January 7, 2024

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

 

Revised sheet attached,  Always be careful using temperature scales.

5 replies

Werner_E
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).

 

Translate
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.)

Translate
Werner_E
25-Diamond I
January 6, 2024

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

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

Translate