Wrong unit for (variable with units)^number

Wrong unit for (variable with units)^number - Messaggi

#1 Pubblicato: 20/05/2023 02:50:55
JP

JP

0 apprezzamenti in 6 post.

Gruppo: 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 Pubblicato: 20/05/2023 03:06:10
Valery Ochkov

Valery Ochkov

67 apprezzamenti in 713 post.

Gruppo: 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 Pubblicato: 20/05/2023 04:11:14
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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 Pubblicato: 20/05/2023 10:01:30
JP

JP

0 apprezzamenti in 6 post.

Gruppo: 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 Pubblicato: 20/05/2023 12:20:31
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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 Pubblicato: 20/05/2023 14:26:15
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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 Pubblicato: 20/05/2023 15:02:47
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: 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 utenti hanno apprezzato questo post
Alvaro 20/05/2023 18:34:00
#8 Pubblicato: 20/05/2023 18:27:54
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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 Pubblicato: 21/05/2023 17:32:01
JP

JP

0 apprezzamenti in 6 post.

Gruppo: 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 Pubblicato: 21/05/2023 19:12:35
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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 Pubblicato: 22/05/2023 06:49:46
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: 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) scaricato 1390 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 utenti hanno apprezzato questo post
Alvaro 22/05/2023 11:36:00
#12 Pubblicato: 22/05/2023 11:35:24
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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.

  • Nuovi post
  • Nessun nuovo post