1 Pages (4 items)
if_else Exception Report - if_else Exception Report - Messages
#1 Posted: 4/11/2019 10:21:35 AM
Can't make it work ... SS 6179
Please, can you quick verdict: NOT compatible
or if possible doctor the patient ?
It may have to be constructed recursive style
Thanks in advance ... Jean
Spline Bspline FAILS.sm (66 KiB) downloaded 36 time(s).
Please, can you quick verdict: NOT compatible
or if possible doctor the patient ?
It may have to be constructed recursive style
Thanks in advance ... Jean
Spline Bspline FAILS.sm (66 KiB) downloaded 36 time(s).
#2 Posted: 4/11/2019 12:57:17 PM
WroteCan't make it work ... SS 6179
Please, can you quick verdict: NOT compatible
or if possible doctor the patient ?
It may have to be constructed recursive style
Thanks in advance ... Jean
Here's something that at least evaluates on 0.99.7030. One thing to note about your function.
There isn't a "return" statement in Smath programming. A program returns the last line entry by default. So to compensate, you have to assign values to a variable and pass that variable at the end. In this case I chose "ans".
I also used "cases" function to clean things up a bit.
Spline Bspline PASSES-alyles.sm (68 KiB) downloaded 31 time(s).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#3 Posted: 4/11/2019 1:36:28 PM
I had an error some of the logic. Also updated to mimic graph that was attached.
Spline Bspline PASSES-alyles.sm (79 KiB) downloaded 33 time(s).
Spline Bspline PASSES-alyles.pdf (266 KiB) downloaded 39 time(s).
Spline Bspline PASSES-alyles.sm (79 KiB) downloaded 33 time(s).
Spline Bspline PASSES-alyles.pdf (266 KiB) downloaded 39 time(s).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#4 Posted: 4/11/2019 2:28:15 PM
WroteHere's something that at least evaluates on 0.99.7030. One thing to note about your function.
There isn't a "return" statement in Smath programming. A program returns the last line entry by default. So to compensate, you have to assign values to a variable and pass that variable at the end. In this case I chose "ans".
Thanks Grand Doctor Alyles ... works fine.
Will refresh soon ... Jean
1 Pages (4 items)
-
New Posts
-
No New Posts