Units don't match?

Units don't match? - Mensajes

#1 Publicado: 9/3/2025 10:02:43
netsonicyxf

netsonicyxf

2 me gusta en 79 mensajes.

Grupo: User

How to solve it?
Archivo no encontrado.Archivo no encontrado.
#2 Publicado: 9/3/2025 11:42:44
overlord

overlord

600 me gusta en 1.381 mensajes.

Grupo: Moderator

Don't know your purpose but it seems you created beta function twice, with same name.
And they should be differ according to your variable units.
Is solution below a possible candidate?

Regards

2025-03-09_06-39.png
A 3 usuarios les gustó este mensaje
netsonicyxf 9/3/2025 11:46:00, NDTM Amarasekera 9/3/2025 15:33:00, sergio 10/3/2025 4:23:00
#3 Publicado: 11/3/2025 21:12:12
NDTM Amarasekera

NDTM Amarasekera

130 me gusta en 352 mensajes.

Grupo: User

Why this works when the line operator is removed as shown ?

Line Operator Problem.png

Prestress Tension Loss Verification as per EN 1992-R1.sm (29,76 KiB) descargado 1819 vez(es).
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
A 1 usuarios les gustó este mensaje
sergio 12/3/2025 0:46:00
#4 Publicado: 12/3/2025 9:41:55
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: User

Wrote

Why this works when the line operator is removed as shown ?...



Hi Amarasekera. Although β.H2 has a numerical result, changing the value of h also changes the value of β.H2, which doesn't happen with β.H. This is because line causes β.H2 to be evaluated each time it is used, while the value in β.H remains constant and fixed.

vec.png

In this way, vectorize is evaluated with the Min function for β.H2, and vectorize generally does not work well with matrix functions.

A version of β.H without matrix functions, with cases, for example, shouldn't have this problem. However, the correct approach is that if β.H is going to hold a constant value, there's no need for it to be evaluated every time it's used.

Best regards.
Alvaro.
A 1 usuarios les gustó este mensaje
NDTM Amarasekera 14/3/2025 15:35:00
#5 Publicado: 14/3/2025 16:09:53
NDTM Amarasekera

NDTM Amarasekera

130 me gusta en 352 mensajes.

Grupo: User

Thank you Alvaro for your useful comments.
As you suggested, the cases function does not create any issues.

Line Operator vs cases function.png
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
A 1 usuarios les gustó este mensaje
Alvaro 15/3/2025 11:10:00
  • Nuevos mensajes
  • Sin mensajes nuevos