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 RegCurry  
#1 Posted : 15 February 2019 00:57:41(UTC)
RegCurry


Rank: Advanced Member

Groups: Registered
Joined: 10/02/2019(UTC)
Posts: 56
Man
United States
Location: Colorado

Sorry to be so slow on Smath. Some thing work like Mathcad and some don't. I need help with the correct syntax for the interpolation function linterp. I have tired all combinations of syntax that I can think of and none work in the attached Smath file.Sad

Help would be appreciated.



RMD CALCULATION.sm (16kb) downloaded 24 time(s).

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

Offline RegCurry  
#2 Posted : 15 February 2019 01:17:53(UTC)
RegCurry


Rank: Advanced Member

Groups: Registered
Joined: 10/02/2019(UTC)
Posts: 56
Man
United States
Location: Colorado

Blush Oops I meant this way to no success.

RMD CALCULATION.sm (16kb) downloaded 21 time(s).
Offline alyles  
#3 Posted : 15 February 2019 02:30:15(UTC)
alyles


Rank: Advanced Member

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

Was thanked: 91 time(s) in 57 post(s)
I don't think vectorize works with this function. It is expecting a single value in argument 3. Checkout my linterp2 function in the attached. I think it does what you want.
RMD CALCULATION.sm (19kb) downloaded 28 time(s).

Note: In my program, it is not necessary to initialize the result. However, I have found that in cases of large vectors, it speeds up processing time to initialize a vector to the expected size and then fill in values. I generally just do this as standard practice now even if it's not necessary.

Edited by user 15 February 2019 02:37:28(UTC)  | Reason: Not specified

Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
Offline RegCurry  
#4 Posted : 15 February 2019 02:47:17(UTC)
RegCurry


Rank: Advanced Member

Groups: Registered
Joined: 10/02/2019(UTC)
Posts: 56
Man
United States
Location: Colorado

Thanks much. You are a real help.

I did not realize that the interpolation functions required additional programming. I incorrectly assumed it was like Mathcad. Many things are like Mathcad, but clearly not all.

Thanks again.
Victory
OK Clap
Reg
Offline alyles  
#5 Posted : 15 February 2019 02:56:20(UTC)
alyles


Rank: Advanced Member

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

Was thanked: 91 time(s) in 57 post(s)
No problem!. Welcome to the forum. There are a lot of people here who are regular contributors and will help you with questions you have. For me, it's why I primarily use SMath for my calculations.

Regarding similarity/dissimilarity to MathCAD... once you start using SMath more you'll stop thinking in "MathCAD" and be able to think in "SMath". As a former MathCAD convert myself, I really started to come into my own when I stopped thinking of how I would do things in MathCAD and started figuring out how best to use SMath.
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
Offline Jean Giraud  
#6 Posted : 15 February 2019 03:16:12(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Regulation Go to Quoted Post
Some thing work like Mathcad and some don't.I need help with the correct syntax for the interpolation function linterp.

Read carefully: linterp, cinterp are 1/1 Mathcad
Smath ainterp has special virtues not found in Mathcad.
Smath linterp, cinterp, ainterp are 1/1 Mathcad as interpolation.
but are 0/1 as scalar functions. In many instances, it is possible
to recast the problem in the form of infinitesimal analysis.
I found no way to render a_c_l interp scalar Mathcad style.
Though, I have the Mathcad code. Don't confuse yourself, a_c_l_interp
they plot on the canvas, i.e: they plot scalar.
scalar is a kernel internal vanishing iterator
Next question: please attach the Smath document.

Jean

Offline Jean Giraud  
#7 Posted : 15 February 2019 03:53:35(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Regulation Go to Quoted Post
Oops I meant this way to no success.

Sorry, I downloaded the other one.
Either blue/red will each have an extraordinary good model fit,
for further processing [deriv, int].

linterp.PNG
Offline Jean Giraud  
#8 Posted : 15 February 2019 04:57:58(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Regulation Go to Quoted Post
Oops I meant this way to no success.


RMD CALCULATION (J).sm (19kb) downloaded 15 time(s).

Offline Jean Giraud  
#9 Posted : 15 February 2019 05:51:13(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
... a bit .

RMD CALCULATION (J).sm (27kb) downloaded 10 time(s).
Offline Jean Giraud  
#10 Posted : 15 February 2019 06:08:02(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
... interesting stuff .

Interpolate [Linterp, Spline2D].sm (119kb) downloaded 20 time(s).
Offline RegCurry  
#11 Posted : 15 February 2019 06:20:02(UTC)
RegCurry


Rank: Advanced Member

Groups: Registered
Joined: 10/02/2019(UTC)
Posts: 56
Man
United States
Location: Colorado


Jean,
I appreciate your attempt at helping me. Unfortunately, I am new to Smath and don't really understand your syntax in your attached sm file. See my comments in the attached file.


Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: Regulation Go to Quoted Post
Oops I meant this way to no success.


RMD CALCULATION (J).sm (19kb) downloaded 15 time(s).



RMD%20CALCULATION%20(J)-1.sm (22kb) downloaded 13 time(s).

Sorry, I am just too new to this code to appreciate your input.
Thanks again,
Reg
Offline Razonar  
#12 Posted : 15 February 2019 06:41:09(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi. You can do some plots too.
Best regards.
Alvaro.

RMD CALCULATION.sm (11kb) downloaded 20 time(s).

Clipboard02.gif
Offline RegCurry  
#13 Posted : 15 February 2019 07:46:57(UTC)
RegCurry


Rank: Advanced Member

Groups: Registered
Joined: 10/02/2019(UTC)
Posts: 56
Man
United States
Location: Colorado

Thanks to all. I was able to find some useful stuff from everyone. Here is where I was headed.

RMD CALCULATION.sm (17kb) downloaded 15 time(s).

Good

Offline Jean Giraud  
#14 Posted : 15 February 2019 07:57:46(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Regulation Go to Quoted Post
Sorry, I am just too new to this code to appreciate your input.
Thanks again,
Reg

Hello Reg ... answered in blue

RMD CALCULATION (J in_blue)-1.sm (25kb) downloaded 15 time(s).

Offline omorr  
#15 Posted : 15 February 2019 09:51:44(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Just a note.

Pay attention to the plot by Alvaro. He uses often neded lele() function (Custom functions plugin) for checking if the value is in a range: Xmin<=x<=Xmax

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 15/02/2019(UTC)
Offline Jean Giraud  
#16 Posted : 15 February 2019 18:47:44(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Regulation Go to Quoted Post
Thanks to all.I was able to find some useful stuff from everyone.

... more in there for publishing.
Little Smath doing so much, so nice !

Jean

RMD CALCULATION (J).sm (36kb) downloaded 16 time(s).


Offline RegCurry  
#17 Posted : 16 February 2019 00:55:22(UTC)
RegCurry


Rank: Advanced Member

Groups: Registered
Joined: 10/02/2019(UTC)
Posts: 56
Man
United States
Location: Colorado



Is this XY plot new? I find it really helpful. Good OK

RMD CALCULATION.sm (19kb) downloaded 23 time(s).
Offline Jean Giraud  
#18 Posted : 16 February 2019 04:48:25(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Regulation Go to Quoted Post
Is this XY plot new?I find it really helpful.

Not new, just from applied Smath features as in older SS 6179.
Users browsing this topic
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.