create a function from values

create a function from values - i have a table of values with the corresponding time and need a function i can differentiate - Messages

#1 Posted: 11/27/2019 6:04:57 PM
deleiman

deleiman

0 likes in 4 posts.

Group: User

hi i have a table of values [R(t=60)=50965] with no obvious pattern and i need to create a function to fit into the formula
1/T = d (ln(R(t)) / dt
my thought was to make S(t)=ln(R(t)) and do d(S(t))/dt but i dont know how to turn a bunch of values into a function in smath and excel doesnt understand the function properly (i left out the last value and did auto complete and it was too far off)
HW8_Table.PNG

R(t) is in counts per second
and i am solving for T
#2 Posted: 11/27/2019 6:30:00 PM
deleiman

deleiman

0 likes in 4 posts.

Group: User

Wrote

Wrote

hi i have a table of values [R(t=60)=50965] with no obvious pattern and i need to create a function to fit into the formula
1/T = d (ln(R(t)) / dt


Start by creating the Smath data table, attach in the Forum.
Your wording looks very alike fitting the laser project.
Toke > 1 month to do in Mathcad as it was so unusual.
But we had lot more data points.
Jean



HW8Q1.sm (2 KiB) downloaded 26 time(s).

do you mean like a matrix?
#3 Posted: 11/27/2019 7:01:34 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Start by creating the Smath data table,


Before going ahead, the wiggling around the straight fit,
is it real or digitizing noise from equipment ?

Data.PNG
#4 Posted: 11/27/2019 7:08:22 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Data.sm (28 KiB) downloaded 33 time(s).
#5 Posted: 11/27/2019 7:08:35 PM
deleiman

deleiman

0 likes in 4 posts.

Group: User

Wrote

Wrote

Start by creating the Smath data table,


Before going ahead, the wiggling around the straight fit,
is it real or digitizing noise from equipment ?

Data.PNG



i would be comfortable assuming it is based on the contextFile not found.File not found.
#6 Posted: 11/27/2019 9:14:47 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

... in your original scale XY.

Data.sm (40 KiB) downloaded 33 time(s).
#7 Posted: 11/27/2019 10:14:46 PM
deleiman

deleiman

0 likes in 4 posts.

Group: User

thank you so much
as much as i would like to say part b of the question i need to do my own homework i just couldnt understand how to get the equation of that line

thanks again
#8 Posted: 11/28/2019 12:03:25 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

thank you so much
as much as I would like to say part b of the question I need to do my own homework I just couldn't understand how to get the equation of that line


1. You mean equation of the straight red line of the first plot ?
2. Or: the piece wise linterp between the support points ?
linterp, cinterp, ainterp are built-in Smath from f(x) menu.
The straight line in [1] can be manipulated a bit from statistical methods [Not Smath built-in].
Also, if you don't like the rough bifurcation at the supports
points, easy to fillet for smooth path.
No more need for the first replies before the last attachment,
then will be removed.

Cheers ... Jean

#9 Posted: 11/28/2019 1:35:47 AM
CBG

CBG

77 likes in 312 posts.

Group: User

I think you can also use the least-squares method to find the equation that best fits your data.

LSM_Eng_Stud.png

Ajust_by_Last_Square_Selection_Engineering_studente.sm (62 KiB) downloaded 39 time(s).


Best Regards

Carlos
1 users liked this post
sergio 11/28/2019 6:00:00 AM
#10 Posted: 11/28/2019 8:55:51 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Here is Cholesky [Least Squares], otherwise.
Ge sensor [Germanium] is an exceptional application.
Jean

Cholesky.PNG

Genfit 0 Ge SubCryogenic.sm (39 KiB) downloaded 40 time(s).
Data.sm (54 KiB) downloaded 36 time(s).
  • New Posts New Posts
  • No New Posts No New Posts