Failure of dimensional analysis for a rule
조회 수: 3 (최근 30일)
이전 댓글 표시
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
채택된 답변
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.
댓글 수: 0
추가 답변 (1개)
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
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/
참고 항목
카테고리
Help Center 및 File Exchange에서 Extend Modeling Environment에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!