Genfit HyperSine

Genfit HyperSine - Genfit HyperSine - 消息

#1 已发布: 2016/6/29 21:04:22
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

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

Jean

Genfit Fit Hypersine.sm (28.8 KiB)已下载 1553 次。
1位用户喜欢此帖子
Davide Carpi 2016/7/1 14:12:00
#2 已发布: 2016/6/30 15:55:08
CBG

CBG

78个赞,共312个帖子。

组: User

Jean:


It does not work for me.

Genfit.png



Best Regards.

Carlos
#3 已发布: 2016/6/30 18:08:31
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2016/6/30 19:50:51
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2016/6/30 20:51:17
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 已发布: 2016/7/1 00:08:35
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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位用户喜欢此帖子
Davide Carpi 2016/7/1 14:12:00
#7 已发布: 2016/7/1 12:36:59
CBG

CBG

78个赞,共312个帖子。

组: User

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


Thanks Jean and Davide

Genfit_2.png




Best Regards

Carlos
#8 已发布: 2016/7/1 21:32:28
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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.26 KiB)已下载 1513 次。
2位用户喜欢此帖子
Davide Carpi 2016/7/2 06:53:00, frapuano 2016/7/3 15:15:00
#9 已发布: 2016/7/2 06:53:16
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 已发布: 2016/7/2 23:22:14
CBG

CBG

78个赞,共312个帖子。

组: User


Jean:

Excellent work.

Thank you.


Best Regards.

Carlos
  • 有新帖
  • 无新帖