Genfit HyperSine

Genfit HyperSine - Genfit HyperSine - Сообщения

#1 Опубликовано: 29.06.2016 21:04:22
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

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

Jean

Genfit Fit Hypersine.sm (28 КиБ) скачан 78 раз(а).
1 пользователям понравился этот пост
Davide Carpi 01.07.2016 14:12:00
#2 Опубликовано: 30.06.2016 15:55:08
CBG

CBG

77 сообщений из 312 понравились пользователям.

Группа: User

Jean:


It does not work for me.

Genfit.png



Best Regards.

Carlos
#3 Опубликовано: 30.06.2016 18:08:31
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 30.06.2016 19:50:51
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 30.06.2016 20:51:17
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 01.07.2016 00:08:35
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 01.07.2016 14:12:00
#7 Опубликовано: 01.07.2016 12:36:59
CBG

CBG

77 сообщений из 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 Опубликовано: 01.07.2016 21:32:28
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 КиБ) скачан 51 раз(а).
2 пользователям понравился этот пост
Davide Carpi 02.07.2016 06:53:00, frapuano 03.07.2016 15:15:00
#9 Опубликовано: 02.07.2016 06:53:16
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 02.07.2016 23:22:14
CBG

CBG

77 сообщений из 312 понравились пользователям.

Группа: User


Jean:

Excellent work.

Thank you.


Best Regards.

Carlos
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений