1页(8条)
Skydiver - 消息
Hi Valery. You can't just 'sterilize' the units because coolprops needs them. This could be an approach.
Skydiver.sm (21.34 KiB)已下载 1686 次。

Best regards.
Alvaro.
Skydiver.sm (21.34 KiB)已下载 1686 次。

Best regards.
Alvaro.
1位用户喜欢此帖子
Valery Ochkov 2024/10/26 13:01:00
Thanks!
But the problem in if
Try please
Skydiver-pv-RT.sm (18.97 KiB)已下载 1701 次。
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.97 KiB)已下载 1701 次。
The parachutist is now falling towards the ground. His parachute won't open. We have to save him!
We saved the skydiver!
Skydiver-OK.sm (23.97 KiB)已下载 1676 次。

https://yandex.ru/video/preview/420757228716091438
Skydiver-OK.sm (23.97 KiB)已下载 1676 次。

https://yandex.ru/video/preview/420757228716091438
WroteThis also works:
Skydiver-OK_b.sm (22.35 KiB)已下载 1648 次。
... and this too
Skydiver-OK_c.sm (20.71 KiB)已下载 1651 次。

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.53 KiB)已下载 1695 次。

Why with cases no an error?
Try please the attach.
Is it some bug?
Skydiver-If-Cases.sm (26.53 KiB)已下载 1695 次。

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条)
- 有新帖
- 无新帖
