Wrong unit for (variable with units)^number

Wrong unit for (variable with units)^number - 消息

#1 已发布: 2023/5/20 02:50:55
JP

JP

0个赞,共6个帖子。

组: User

I have:

x=number (inches)

A=x^-number

A= decimal number.fraction (unit)

Why am I getting a results that is a product of decimal and fraction rather than a decimal or fraction?

The unit seems to be only for the fraction.

I am not sure how to paste my results from SMath Studio.
#2 已发布: 2023/5/20 03:06:10
Valery Ochkov

Valery Ochkov

67个赞,共716个帖子。

组: User

Wrote

I have:

x=number (inches)

A=x^-number

A= decimal number.fraction (unit)

Why am I getting a results that is a product of decimal and fraction rather than a decimal or fraction?

The unit seems to be only for the fraction.

I am not sure how to paste my results from SMath Studio.


in.png
#3 已发布: 2023/5/20 04:11:14
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Wrote

I have:

x=number (inches)
A=x^-number
A= decimal number. Fraction (unit)

Why am I getting a results that is a product of decimal and fraction rather than a decimal or fraction? ...



Because that's the correct answer:

Clipboard01.png

Wrote

... The unit seems to be only for the fraction. ...



Powering units could be some confuse, but don't worry, more confusing could be check the SI official standard about how to write it.

Best regards.
Alvaro.
#4 已发布: 2023/5/20 10:01:30
JP

JP

0个赞,共6个帖子。

组: User

How do I ignore the units for x=7 in when used in the A=x^2 formula?

I tried 'ignore units' and it did not change anything.

Thanks!
#5 已发布: 2023/5/20 12:20:31
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

How do I ignore the units for x:=7


Type 7 ... multiply ... type ' [apostrophe]
In the round place holder ... Units inch

SilentUnit.PNG
#6 已发布: 2023/5/20 14:26:15
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Originally Posted by: Jean Giraud [url=/forum/yaf_postsm81315_Wrong-unit-for--variable-with-units-number.aspx#post81315][/url]Type 7 ... multiply ... type ' [apostrophe]
In the round place holder ... Units inch


Does it work as you demanded ?
#7 已发布: 2023/5/20 15:02:47
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

.
Wrote

Type 7 ... multiply ... type ' [apostrophe]
In the round place holder ... Units inch


Never do this, Razonar's approach is the correct one.
Jean is simply against SI units, don't listen to him for anything involved units.

And never ever use Jean's engineering calculations for anything.
They are notorious for being wrong and giving false results.

If he insists at anytime about using SMath 0.99.6179, simply ignore it.
That is a 6+ year old version of SMath, always use latest stable.

Regards
1位用户喜欢此帖子
Alvaro 2023/5/20 18:34:00
#8 已发布: 2023/5/20 18:27:54
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Wrote

How do I ignore the units for x=7 in when used in the A=x^2 formula? ...



Hi. Something like this?

Clipboard01.png

Best regards.
Alvaro.

#9 已发布: 2023/5/21 17:32:01
JP

JP

0个赞,共6个帖子。

组: User

@Razonar

Not sure. If I use 'A' in another equation, will it consider the units for A?

I dont what it to as it will mess up the units for that answer...which will mess up the units for the subsequent equation.
#10 已发布: 2023/5/21 19:12:35
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

The choice as to whether you want to use A with or without units is yours. You can use the version of A with units, or the version of A without units. But not both at the same time.

Best regards.
Alvaro.
#11 已发布: 2023/5/22 06:49:46
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

Wrote

I have:

x=number (inches)

A=x^-number

A= decimal number.fraction (unit)

Why am I getting a results that is a product of decimal and fraction rather than a decimal or fraction?

The unit seems to be only for the fraction.

I am not sure how to paste my results from SMath Studio.



Such problems usually emerge if you have an equation where the variables aren't meant to be numerical values of quantities given in a particular unit rather than being real physical quantities (number times unit).

SMath is designed for work with quantity times unit variables. If you want to use an empirical equation, you also must provide the units of each variable (be it input or result).

You can integrate such equations into a world of proper handling of physical quantites by dividing each input parameter by the unit in which it is supposed to be inserted and by multiplying the expression by the unit in which the result is supposed to be given by that empirical model.

Worksheet2.png
Worksheet2.sm (5.34 KiB)已下载 1402 次。
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1位用户喜欢此帖子
Alvaro 2023/5/22 11:36:00
#12 已发布: 2023/5/22 11:35:24
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Wrote

... You can integrate such equations into a world of proper handling of physical quantites by dividing each input parameter by the unit in which it is supposed to be inserted and by multiplying the expression by the unit in which the result is supposed to be given by that empirical model.



That is a very smart recommendation.

Best regards.
Alvaro.

  • 有新帖
  • 无新帖