Post Reply 
newRPL - build 1255 released! [updated to 1299]
09-06-2019, 09:01 PM
Post: #573
RE: newRPL - build 1255 released! [updated to 1282]
I've decided to take on the big task of reviewing *ALL* commands and make sure they work properly with unit objects and do parallel processing with lists. This is so that expressions using those commands don't fail when the variable used contains units or case-lists (whenever I say case-lists, feel free to read it as "multiple results"). Once expressions work well with units, Phase II of this work would be to make sure the solvers work properly with units.

But before I can even begin, I have some questions that I want to open for debate:

LN(X) and EXP(X): What are these functions supposed to return when working with units?

Same for a^X where either X or both 'a' and X have units

Let's start at the beginning:

X^n is fine if n is just a number.
I guess I could extend that case to where 'n' does have units but it's actually a non-dimensional number, like n=1.609_km/mi. Cancelling out all units turns out n=1, so X^(1.609_km/mi) should EVAL to X^1 = X.
What if n has units? Do we issue a "inconsistent units" error?

EXP(X) is I guess similar to e^X so the same as above should apply?

It seems to me in physics the exponential function should only be used with non-dimensional numbers... but I'm not so sure this is 100% valid.

An example with vibration analysis (images borrowed from Wikipedia):

[Image: 7257f4fabbfd78508fe995f42c895a2486eae473]

[Image: 56471251e85fc0a1f97ab69035ab34c154b0c9af]

In the example above, the argument to EXP() is non-dimensional.
Any other ideas?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: newRPL - build 1001 released! - pier4r - 12-16-2017, 08:03 AM
newRPL - on Hp 39gs - Martin Hepperle - 06-05-2019, 06:51 AM
RE: newRPL - build 1001 released! - pier4r - 12-23-2017, 10:16 AM
RE: newRPL - build 1001 released! - pier4r - 01-01-2018, 09:42 AM
t - Claudio L. - 01-01-2018, 03:06 PM
RE: newRPL - build 1001 released! - pier4r - 01-01-2018, 03:41 PM
RE: newRPL - build 1001 released! - pier4r - 01-02-2018, 04:54 PM
RE: newRPL - build 1001 released! - pier4r - 01-02-2018, 06:58 PM
newRPL - brickviking - 10-05-2018, 06:01 AM
RE: newRPL - build 1255 released! [updated to 1282] - Claudio L. - 09-06-2019 09:01 PM
How to participate? - erazor - 12-13-2019, 07:12 AM



User(s) browsing this thread: 2 Guest(s)