Genfit HyperSine

Genfit HyperSine - Genfit HyperSine - Messages

#1 Posted: 6/29/2016 9:04:22 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

There is a bit longer story behind "HyperSine".
For another time when I will publish the "0Appendix"

Jean

Genfit Fit Hypersine.sm (28 KiB) downloaded 74 time(s).
1 users liked this post
Davide Carpi 7/1/2016 2:12:00 PM
#2 Posted: 6/30/2016 3:55:08 PM
CBG

CBG

77 likes in 312 posts.

Group: User

Jean:


It does not work for me.

Genfit.png



Best Regards.

Carlos
#3 Posted: 6/30/2016 6:08:31 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Jean:


It does not work for me.



Hello Carlos,

It may have to do with your version and the coding
of some items in the collapsed area. A repair job
for whoever is willing. Maybe Davide, Andrey...
Please: repost your work sheet and the vesion you use.
Genfit algo was created Smath 5346 OFFicial release.

Cheers, Jean




#4 Posted: 6/30/2016 7:50:51 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Error code confirmed in your version: "x no definido"
most probably in the collapsed φ(x,β,f,n).
In this module: try this => φ(x,β,f(x),n). If it does
not work ... would be disaster. The most of its power,
Smath 5346 is the "algo style" coding similar to Mathcad 11.
Similar error code may reflect in minimize(XY,f,φ,β).

Jean
#5 Posted: 6/30/2016 8:51:17 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Using trace() seems that transpose() now holds a symbolic expression if applied in the form f(...):transpose(f(...))); this makes impossible to obtain a numeric result for length() and then proceed in computation of stuff related to k inside minimize; according to Andrey's comments of SS-2335 I suppose is one of the different behaviors of functions able to handle undefined data (like transpose).

You have 2 solutions in current 0.98:

  • in this case you can simply remove the row φ(x,β):transpose(φ(x,β));
    φ(x,β) is a vector and for calculations inside Jean's minimize() there aren't reasons to have it transposed, since linear indexing is used inside these loops);

  • a more general solution (f.e. if you need transposed vector for matrix multiplication) is to assign the transposed function to a function with a different name: φT(x,β):transpose(φ(x,β))


2016-07-01 01_47_27-SMath Studio Desktop - [Genfit%20Fit%20Hypersine.sm_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#6 Posted: 7/1/2016 12:08:35 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

You are right Davide: in minimize(XY,f,φ,β) both lines
f(x,β):=f(x,β) & φ(x,β):=transpose(φ(x,β)) are redundant,
must be removed.

Jean
1 users liked this post
Davide Carpi 7/1/2016 2:12:00 PM
#7 Posted: 7/1/2016 12:36:59 PM
CBG

CBG

77 likes in 312 posts.

Group: User

Renaming " φ(x,β) " to " φT(x,β) " as indicated Davide , the problem is solved.


Thanks Jean and Davide

Genfit_2.png




Best Regards

Carlos
#8 Posted: 7/1/2016 9:32:28 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Carlos, Davide:

Here is the maths of "HyperSineCosine". The two lines in question
Have nothing to do in there Smath 5346. I know who put them first
in the module, guess: Jean ! Works fine in Smath 5346.
Interesting to cross check in latest Smath.

Jean

Forum Minimize Repaired.gif


Maths HyperSine.sm (79 KiB) downloaded 49 time(s).
2 users liked this post
Davide Carpi 7/2/2016 6:53:00 AM, frapuano 7/3/2016 3:15:00 PM
#9 Posted: 7/2/2016 6:53:16 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Nice, works fine even in the latest SMath Studio
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#10 Posted: 7/2/2016 11:22:14 PM
CBG

CBG

77 likes in 312 posts.

Group: User


Jean:

Excellent work.

Thank you.


Best Regards.

Carlos
  • New Posts New Posts
  • No New Posts No New Posts