Units don't match?

Units don't match? - Сообщения

#1 Опубликовано: 09.03.2025 10:02:43
netsonicyxf

netsonicyxf

2 сообщений из 79 понравились пользователям.

Группа: User

How to solve it?
Файл не найден.Файл не найден.
#2 Опубликовано: 09.03.2025 11:42:44
overlord

overlord

554 сообщений из 1333 понравились пользователям.

Группа: 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
3 пользователям понравился этот пост
netsonicyxf 09.03.2025 11:46:00, NDTM Amarasekera 09.03.2025 15:33:00, sergio 10.03.2025 04:23:00
#3 Опубликовано: 11.03.2025 21:12:12
NDTM Amarasekera

NDTM Amarasekera

130 сообщений из 352 понравились пользователям.

Группа: 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 КиБ) скачан 63 раз(а).
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
1 пользователям понравился этот пост
sergio 12.03.2025 00:46:00
#4 Опубликовано: 12.03.2025 09:41:55
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: 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.
1 пользователям понравился этот пост
NDTM Amarasekera 14.03.2025 15:35:00
#5 Опубликовано: 14.03.2025 16:09:53
NDTM Amarasekera

NDTM Amarasekera

130 сообщений из 352 понравились пользователям.

Группа: 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
1 пользователям понравился этот пост
Alvaro Diaz Falconi 15.03.2025 11:10:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений