Replies: 11 comments
-
That is a very interesting question: whether But one argument against, is that That's the only example I could think of at the moment. Maybe the best way to decide this question is to look at more examples and see what makes sense. Do you have any others to share? |
Beta Was this translation helpful? Give feedback.
-
Interesting point ericman314. I totally agree with you that keeping a dimensionless unit makes it easier to understand a physical problem. And I think there is no need to decide whether to keep a unit or not. There maybe 2 options:
I prefer option 1 because it keeps the unit and helps me understand the physical problem and at the same time gives me the possibility to check a result by checking if the physical quantity fits. This could look like:
|
Beta Was this translation helpful? Give feedback.
-
This is a good question! I think that maths should treat radians the same as any other unit. If folk wish to convert |
Beta Was this translation helpful? Give feedback.
-
You're right, dividing by |
Beta Was this translation helpful? Give feedback.
-
I don't think this is a terrible idea, I just worry that implicitly adding/removing/ignoring For example, let's say I wanted to compute the angular speed of a 2-pole AC induction motor running on a 60 Hz supply in RPM. Wikipedia gives the formula as At that point I realize that there is something wrong with my formula. Thinking about it more, I realize that one cycle of the AC current would rotate the motor a full 360 degrees, so I change my formula to Now say that math.js implicitly added a So by that example, |
Beta Was this translation helpful? Give feedback.
-
Good example. A few comments on that:
And actually it is not (it is 2pi Hz and 1 Hz). So what do you think about my second point (selective neutralization of dimensionless units)? |
Beta Was this translation helpful? Give feedback.
-
Yeah, I did have to stretch a little in my example as I was converting to an angular unit rather than from an angular unit. You are right that if we did implement this, only conversion to angular-less units would remove the
Very true. In that case, the angular units are never introduced into the equation at all. Which is, I think, another satisfactory resolution to this issue: if radians are treated as just being equal to 1, then why use them at all? You have given several example conversions where the source unit has a |
Beta Was this translation helpful? Give feedback.
-
Yes I totally agree that such a fundamental change needs a strong justification. I supposed that incorrect results ( |
Beta Was this translation helpful? Give feedback.
-
Interesting discussion! On a side note: I've always doubted whether I should let mathjs functions like |
Beta Was this translation helpful? Give feedback.
-
Unfortunately I don't have a better idea than the one I described before. I know it's holiday time, so maybe there will be a descission in a few weeks? |
Beta Was this translation helpful? Give feedback.
-
At this point, this is really a Discussion for https://github.com/ericman314/unitmath; but in any case, it is not an issue for mathjs, so moving it to mathjs discussions to preserve the thoughts here. |
Beta Was this translation helpful? Give feedback.
-
If I type the following into the math.js expression parser:
But if I type:
But [N] should be possible and should be correct because rad = m/m = 1 (according to SI).
Is there a chance to solve this?
Beta Was this translation helpful? Give feedback.
All reactions