SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
Error in element-wise calculation with nested functions
Rank: Newbie
Groups: Registered
Joined: 23/07/2019(UTC) Posts: 7 Location: Saarbrücken
|
Hello, the (very smart) element-wise calculation seems to be buggy if applied to nested functions. The result can be calculated correctly, but cannot be assigned to a new variable. I found this issue in a complex calculation and simplified it to the attached problem: - A first function uses an if-statement to calculate the result - A second funtion calls the first function and multiplies the result with "1" If either the if-statement or the multiplication is removed, everything works fine. This seems to be strange... Used SMath-version: 0.99.7610, but also with current Beta-version 0.99.7804 For own tests: TestElem.sm (12kb) downloaded 3 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/07/2010(UTC) Posts: 437 Location: Beer-Sheva Was thanked: 520 time(s) in 288 post(s)
|
Use the function eval() eval.sm (12kb) downloaded 16 time(s).
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 23/07/2019(UTC) Posts: 7 Location: Saarbrücken
|
Seems to work! Thank you for your fast response!
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
Error in element-wise calculation with nested functions
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.