フィルターのクリア

Failure of dimensional analysis for a rule

4 ビュー (過去 30 日間)
Day
Day 2023 年 9 月 21 日
コメント済み: Day 2023 年 9 月 27 日
Hi,
I have a rule y=x^0.35. x has the dimension of mass. An error message showed up saying that the exponent must be an integer constant. How can I handle this situation as this rule is very important in my model?
  3 件のコメント
Day
Day 2023 年 9 月 21 日
The model was developed using the Simbiology app without writing codes.
Torsten
Torsten 2023 年 9 月 21 日
編集済み: Torsten 2023 年 9 月 21 日
Can't you assign a unit to y instead of letting Simbiology compute it for you as kg^0.35 ? And why is it possible if the exponent is an integer ? Are you sure that this is really a dimensional problem ?

サインインしてコメントする。

採用された回答

Arthur Goldsipe
Arthur Goldsipe 2023 年 9 月 21 日
When you enable dimensional analysis (or unit conversion) in SimBiology, fractional exponents can only be applied to dimensionless quantities. So you could write your rule as y=y0*(x/x0)^0.35, where x and x0 have the same units, and y0 is the value of y when x=x0.

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2023 年 9 月 21 日
I am baffled about what unit (grams ^ 0.35) would be. Should that be interpreted as (grams ^ (35/100) so that the unit would be "the 100'th root of grams to the 35'th power" ? Or should it be interpreted as (grams ^ (7/20)) ? so that the unit would be "the 20'th root of grams to the 7'th power" ?
Mind you, I also struggle with the physical meaning of something like y = sqrt(x) when x is mass.
If this is a situation of "never mind the dimensional continuity for now, the math works out" then you are going to have to strip the units from the item, make the math transformation, and add units back to the result.
  3 件のコメント
Walter Roberson
Walter Roberson 2023 年 9 月 22 日
Hmmm, it appears that people do find uses for odd units; https://www.reddit.com/r/askscience/comments/2v4gv5/the_square_root_of_a_kilogram/
Day
Day 2023 年 9 月 27 日
@Arthur Goldsipe Thank you very much

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeScan Parameter Ranges についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by