Transform Axes Canned Transformations

In a different forum was posted thoughts about Transform Axes as ...

johnweeks wrote:
...Perhaps I should add some canned Arrhenius transformation function.


I think the following two canned transformations for temperature would be useful:

a) oC -> 1/K: 1/(x +273.15)
b) 1/K -> oC: (1/x) - 273.15

BTW, a factor of 1000 is used to adjust the 1/K scale to be in inverse milli-Kelvin (which can also be done using the proper escape codes in the axis label).

(and I meant to append this to the Wish List rather than start a new topic --- my apologies)
jjweimer wrote:
In a different forum was posted thoughts about Transform Axes as ...

johnweeks wrote:
...Perhaps I should add some canned Arrhenius transformation function.


I think the following two canned transformations for temperature would be useful:

a) oC -> 1/K: 1/(x +273.15)
b) 1/K -> oC: (1/x) - 273.15

BTW, a factor of 1000 is used to adjust the 1/K scale to be in inverse milli-Kelvin (which can also be done using the proper escape codes in the axis label).

(and I meant to append this to the Wish List rather than start a new topic --- my apologies)


No problem- I was able to find your new topic :)

Don't you have your minus and plus signs backward? If X is degrees C, 1/K would be 1/(X-273.15), eh?

I suppose I should just have both an InverseKelvin and InverseMilliKelvin function. It's a pain having to deal with the coefficient wave. The ModifiedReciprocal function can actually do the job here, but isn't very convenient to use. It requires a coefficient wave: InverseKelvinCoefs={1, -273.15}, and InverseMilliKelvinCoefs={1000, -273.15}

The other direction requires writing a new function.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
jjweimer wrote:


a) oC -> 1/K: 1/(x +273.15)
b) 1/K -> oC: (1/x) - 273.15


johnweeks wrote:

Don't you have your minus and plus signs backward? If X is degrees C, 1/K would be 1/(X-273.15), eh?


When X is oC, your equation leads to negative inverse Kelvin temperatures. Try finding 1/K from X = 0 oC in my equation a) versus your equation.

I think having an additional built-in function with milli-inverse Kelvin or milli-Kelvin seems over-kill with the ease that users can roll their own.

--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAH
jjweimer wrote:
jjweimer wrote:


a) oC -> 1/K: 1/(x +273.15)
b) 1/K -> oC: (1/x) - 273.15


johnweeks wrote:

Don't you have your minus and plus signs backward? If X is degrees C, 1/K would be 1/(X-273.15), eh?


When X is oC, your equation leads to negative inverse Kelvin temperatures. Try finding 1/K from X = 0 oC in my equation a) versus your equation.


Oh, yeah- Degrees C has *small* numbers, doesn't it? My forehead already has bump from running into a book shelf while accessing the back of my computer, so I'll forgo the requisite head-slap...

Quote:

I think having an additional built-in function with milli-inverse Kelvin or milli-Kelvin seems over-kill with the ease that users can roll their own.


Until you get someone that gets that rabbit-in-the-headlights look when they see code. If I'm lucky, they will post here and you will answer it :)

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com