1 страниц (8 вхождений)
Skydiver - Сообщения
#1 Опубликовано: 26.10.2024 01:39:57
#2 Опубликовано: 26.10.2024 05:53:11
Hi Valery. You can't just 'sterilize' the units because coolprops needs them. This could be an approach.
Skydiver.sm (21 КиБ) скачан 26 раз(а).

Best regards.
Alvaro.
Skydiver.sm (21 КиБ) скачан 26 раз(а).
Best regards.
Alvaro.
1 пользователям понравился этот пост
Valery Ochkov 26.10.2024 13:01:00
#3 Опубликовано: 26.10.2024 13:02:36
Thanks!
But the problem in if
Try please
Skydiver-pv-RT.sm (18 КиБ) скачан 18 раз(а).
The parachutist is now falling towards the ground. His parachute won't open. We have to save him!
But the problem in if
Try please
Skydiver-pv-RT.sm (18 КиБ) скачан 18 раз(а).
The parachutist is now falling towards the ground. His parachute won't open. We have to save him!
#4 Опубликовано: 26.10.2024 14:34:18
We saved the skydiver!
Skydiver-OK.sm (23 КиБ) скачан 25 раз(а).

https://yandex.ru/video/preview/420757228716091438
Skydiver-OK.sm (23 КиБ) скачан 25 раз(а).
https://yandex.ru/video/preview/420757228716091438
#5 Опубликовано: 26.10.2024 16:54:49
1 пользователям понравился этот пост
Valery Ochkov 26.10.2024 21:22:00
#6 Опубликовано: 26.10.2024 21:35:34
WroteThis also works:
Skydiver-OK_b.sm (22 КиБ) скачан 24 раз(а).
... and this too
Skydiver-OK_c.sm (20 КиБ) скачан 18 раз(а).
#7 Опубликовано: 27.10.2024 12:30:37
Why with if we have an error?
Why with cases no an error?
Try please the attach.
Is it some bug?
Skydiver-If-Cases.sm (26 КиБ) скачан 24 раз(а).

Why with cases no an error?
Try please the attach.
Is it some bug?
Skydiver-If-Cases.sm (26 КиБ) скачан 24 раз(а).
#8 Опубликовано: 28.10.2024 16:39:33
WroteWhy with if we have an error?
Why with cases no an error?
Try please the attach.
Is it some bug?
It is probably related to some preprocessing, the function if() is a numerical function and returns an error if the arguments are not defined.
It's the same in integrals, you can't use functions like if() because at some level a preprocessing is required and the function is executed with unknowns as arguments (to retrieve the function from the global context, or some other feature like guessing the unknowns or the units).
cases() works in a different way and you can use for these tasks, but it come at a the cost of not being able to use definitions inside its arguments, because each single case it's not "sealed" from preprocessing by the error that if() throws.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 страниц (8 вхождений)
-
Новые сообщения
-
Нет новых сообщений