Wrong unit for (variable with units)^number

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

#1 Publicado: 20/5/2023 2:50:55
JP

JP

0 me gusta en 6 mensajes.

Grupo: 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 Publicado: 20/5/2023 3:06:10
Valery Ochkov

Valery Ochkov

67 me gusta en 713 mensajes.

Grupo: 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 Publicado: 20/5/2023 4:11:14
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: 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 Publicado: 20/5/2023 10:01:30
JP

JP

0 me gusta en 6 mensajes.

Grupo: 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 Publicado: 20/5/2023 12:20:31
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 20/5/2023 14:26:15
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 20/5/2023 15:02:47
overlord

overlord

600 me gusta en 1.381 mensajes.

Grupo: 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
A 1 usuarios les gustó este mensaje
Alvaro 20/5/2023 18:34:00
#8 Publicado: 20/5/2023 18:27:54
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: 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 Publicado: 21/5/2023 17:32:01
JP

JP

0 me gusta en 6 mensajes.

Grupo: 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 Publicado: 21/5/2023 19:12:35
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: 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 Publicado: 22/5/2023 6:49:46
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: 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) descargado 1385 vez(es).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
A 1 usuarios les gustó este mensaje
Alvaro 22/5/2023 11:36:00
#12 Publicado: 22/5/2023 11:35:24
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

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

  • Nuevos mensajes
  • Sin mensajes nuevos