Skydiver

Skydiver - Poruke

#1 Objavljeno: 26. 10. 2024. 01:39:57
Valery Ochkov

Valery Ochkov

75 svidjanja u 735 postova.

Grupa: User

Where is an error?
Skydiver.sm (14,63 KiB) preuzeto 1751 put(ova).

Must be some plot
Skydiver.png
#2 Objavljeno: 26. 10. 2024. 05:53:11
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

Hi Valery. You can't just 'sterilize' the units because coolprops needs them. This could be an approach.

Skydiver.sm (21,34 KiB) preuzeto 1711 put(ova).

ode.png

Best regards.
Alvaro.
1 korisnika je svidelo ovu objavu
Valery Ochkov 26. 10. 2024. 13:01:00
#3 Objavljeno: 26. 10. 2024. 13:02:36
Valery Ochkov

Valery Ochkov

75 svidjanja u 735 postova.

Grupa: User

Thanks!
But the problem in if
Try please
Skydiver-pv-RT.sm (18,97 KiB) preuzeto 1725 put(ova).
The parachutist is now falling towards the ground. His parachute won't open. We have to save him!
#4 Objavljeno: 26. 10. 2024. 14:34:18
Valery Ochkov

Valery Ochkov

75 svidjanja u 735 postova.

Grupa: User

We saved the skydiver!
Skydiver-OK.sm (23,97 KiB) preuzeto 1704 put(ova).
Skydiver.png

https://yandex.ru/video/preview/420757228716091438
#5 Objavljeno: 26. 10. 2024. 16:54:49
StvMath

StvMath

44 svidjanja i 1 nesvidjanja u 76 postova.

Grupa: User

This also works:

Skydiver-OK_b.sm (22,35 KiB) preuzeto 1677 put(ova).
1 korisnika je svidelo ovu objavu
Valery Ochkov 26. 10. 2024. 21:22:00
#6 Objavljeno: 26. 10. 2024. 21:35:34
Valery Ochkov

Valery Ochkov

75 svidjanja u 735 postova.

Grupa: User

Wrote

This also works:

Skydiver-OK_b.sm (22,35 KiB) preuzeto 1677 put(ova).


... and this too
Skydiver-OK_c.sm (20,71 KiB) preuzeto 1675 put(ova).
Skydiver-OK_c.png

#7 Objavljeno: 27. 10. 2024. 12:30:37
Valery Ochkov

Valery Ochkov

75 svidjanja u 735 postova.

Grupa: User

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) preuzeto 1716 put(ova).
Skydiver-If-Cases.png

#8 Objavljeno: 28. 10. 2024. 16:39:33
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: Moderator

Wrote

Why 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
  • Novi postovi
  • Nema novih postova