Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Jean Giraud  
#1 Posted : 11 April 2019 16:21:35(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
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 (67kb) downloaded 18 time(s).

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline alyles  
#2 Posted : 11 April 2019 18:57:17(UTC)
alyles


Rank: Advanced Member

Groups: Registered
Joined: 23/03/2016(UTC)
Posts: 276
United States

Was thanked: 91 time(s) in 57 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
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 (69kb) downloaded 15 time(s).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
Offline alyles  
#3 Posted : 11 April 2019 19:36:28(UTC)
alyles


Rank: Advanced Member

Groups: Registered
Joined: 23/03/2016(UTC)
Posts: 276
United States

Was thanked: 91 time(s) in 57 post(s)
I had an error some of the logic. Also updated to mimic graph that was attached.
Spline Bspline PASSES-alyles.sm (80kb) downloaded 13 time(s).
Spline Bspline PASSES-alyles.pdf (267kb) downloaded 17 time(s).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
Offline Jean Giraud  
#4 Posted : 11 April 2019 20:28:15(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: alyles Go to Quoted Post
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

Users browsing this topic
Guest
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.