if_else Exception Report

if_else Exception Report - if_else Exception Report - Mensajes

#1 Publicado: 11/4/2019 10:21:35
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

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,5 KiB) descargado 1450 vez(es).
#2 Publicado: 11/4/2019 12:57:17
Arie

Arie

94 me gusta en 285 mensajes.

Grupo: User

Wrote

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



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,51 KiB) descargado 1393 vez(es).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#3 Publicado: 11/4/2019 13:36:28
Arie

Arie

94 me gusta en 285 mensajes.

Grupo: User

I had an error some of the logic. Also updated to mimic graph that was attached.
Spline Bspline PASSES-alyles.sm (79,56 KiB) descargado 1401 vez(es).
Spline Bspline PASSES-alyles.pdf (266,43 KiB) descargado 918 vez(es).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#4 Publicado: 11/4/2019 14:28:15
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Wrote

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".


Thanks Grand Doctor Alyles ... works fine.
Will refresh soon ... Jean

  • Nuevos mensajes
  • Sin mensajes nuevos