InverseFunction Lambert

InverseFunction Lambert - InverseFunction Lambert - Сообщения

#1 Опубликовано: 24.07.2019 12:35:46
Jean Giraud

Jean Giraud

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

Группа: User

This Treasury is huge ! mostly initiatic [Engineering/Scientific]
Inversing/solving a function may come in 3 forms
1. Explicit NASA(h) ... Frechet
2. maple RootOf as single/dual solver
3. LambertW [Gumbel, mostly arithmetic expressions]

This document extends Lambert dual branches [exemplified]
As it looks from recent years it has immense applications
Just schemed in this first brew. If you have more applications ... welcome.

Jean

Solve Inverse Symbolic Suite READ First Copy.sm (282 КиБ) скачан 72 раз(а).
#2 Опубликовано: 24.07.2019 15:54:16
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Hello Jean,

It seems something was wrong here - "no real roots".

norealroots.PNG

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Опубликовано: 24.07.2019 21:17:28
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

It seems something was wrong here - "no real roots".


"No real roots" SS 7109 is a bug wrt that version.
Surprising it does not complain elsewhere the solve bloc is called ?
The attached is SS 6179.
Salut Radovan, thanks for reporting ... Jean.

RootOf.sm (11 КиБ) скачан 56 раз(а).

RootOf.PNG

#4 Опубликовано: 24.07.2019 22:03:30
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Hello Jean,

It seems something was wrong here - "no real roots".


Thanks Radovan ... no bug: just bad construction.
The main work sheet doctored.
α, β were consumed in the Pt100 thermometer.

Jean

Solve Inverse Symbolic Suite READ First Copy.sm (289 КиБ) скачан 63 раз(а).

#5 Опубликовано: 24.07.2019 23:32:40
Jean Giraud

Jean Giraud

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

Группа: User

... Fréchet & Gumbel have been doctored.
Maple failed the two Lambert branches for Gumbel.

Solve Inverse Symbolic Suite READ First Copy.sm (293 КиБ) скачан 81 раз(а).
#6 Опубликовано: 25.07.2019 04:28:05
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Wrote

... Fréchet & Gumbel have been doctored.
Maple failed the two Lambert branches for Gumbel.

Solve Inverse Symbolic Suite READ First Copy.sm (293 КиБ) скачан 81 раз(а).



Hello Jean,

Hmm...I am not sure if it should be this way but this has been working to long.
I just opened the worksheet and it seems that it get stuck at this graph.

The SMath version was 0.99.7109

longtime.png

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#7 Опубликовано: 25.07.2019 09:17:06
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Hello Jean,

Hmm...I am not sure if it should be this way but this has been working to long.
I just opened the worksheet and it seems that it get stuck at this graph.

The SMath version was 0.99.7109


For sure, it does not make sense.
What about just that created in new sheet ?

W(x).PNG

#8 Опубликовано: 25.07.2019 09:35:36
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Wrote

Wrote

Hello Jean,

Hmm...I am not sure if it should be this way but this has been working to long.
I just opened the worksheet and it seems that it get stuck at this graph.

The SMath version was 0.99.7109


For sure, it does not make sense.
What about just that created in new sheet ?



You are right. It does not make sense.
New worksheet, the same situation. Tried on Win7 and Win10

Could anyone else confirm this please.

nosense.png

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#9 Опубликовано: 25.07.2019 12:27:28
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

You are right. It does not make sense.
New worksheet, the same situation. Tried on Win7 and Win10

Could anyone else confirm this please.


That's for Gurus ... where are you ?
If Lambert fails, it could confirm the bug is "roots"

roots_solve test.sm (9 КиБ) скачан 74 раз(а).


#10 Опубликовано: 26.07.2019 08:54:19
Davide Carpi

Davide Carpi

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

Группа: Moderator

The problem is that W(4*exp(4-x)) returns an error "index out of matrix bounds" if x is negative (check it on the canvas). Then this triggers the infinite calculation time in the 2D plot.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#11 Опубликовано: 27.07.2019 18:27:24
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

The problem is that W(4*exp(4-x)) returns an error "index out of matrix bounds" if x is negative (check it on the canvas). Then this triggers the infinite calculation time in the 2D plot.


Solution of this demo DE is wrt Lambert W0(x)
I attempted W1(x) "Division by zero"
On the other hand: Lambert [W0(x0, W1(x)] do not vectorize
but tabulates for loop discrete. Wait and see Radovan next visit.

roots_solve test.sm (18 КиБ) скачан 65 раз(а).

W0(x).PNG

#12 Опубликовано: 28.07.2019 02:41:36
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Wrote

Wrote

The problem is that W(4*exp(4-x)) returns an error "index out of matrix bounds" if x is negative (check it on the canvas). Then this triggers the infinite calculation time in the 2D plot.


Solution of this demo DE is wrt Lambert W0(x)
I attempted W1(x) "Division by zero"
On the other hand: Lambert [W0(x0, W1(x)] do not vectorize
but tabulates for loop discrete. Wait and see Radovan next visit.



I simply do not understand why is this happening (triggering the infinite calculation time in 2D plot) and think that in 7109 this behavior is wrong regarding the 2D graph.

xyerror.PNG

I think it should be considered a bug. If the x-y point can not be calculated it should be just skipped, nothing else. I also think that in 6179 is applied that behavior. The X-Y plot is doing this just right.

xy2d.PNG

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#13 Опубликовано: 28.07.2019 10:39:03
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

I think it should be considered a bug. If the x-y point can not be calculated it should be just skipped, nothing else. I also think that in 6179 is applied that behavior. The X-Y plot is doing this just right.


A desperate case: Quick plot 6179 just fine
X_Y red does not solve "roots" on its own canvas.
Interesting but does not cut the mustard yet .

Desperate.PNG

#14 Опубликовано: 28.07.2019 11:18:50
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

I am now more puzzled than before ???

To be honest, I've never liked the roots() function. It makes me troubles so many times.
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#15 Опубликовано: 28.07.2019 13:23:03
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

I am now more puzzled than before ???
To be honest, I've never liked the roots() function.
It makes me troubles so many times.


Yes Radovan but so gorgeous solving on the running canvas.
Something like Mathcad 'root', much easier to implement.
Cheers ... Jean

Inst_Mach Number Pitot.sm (187 КиБ) скачан 66 раз(а).

#16 Опубликовано: 28.07.2019 14:30:23
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Wrote

Wrote

I am now more puzzled than before ???
To be honest, I've never liked the roots() function.
It makes me troubles so many times.


Yes Radovan but so gorgeous solving on the running canvas.
Something like Mathcad 'root', much easier to implement.
Cheers ... Jean

Inst_Mach Number Pitot.sm (187 КиБ) скачан 66 раз(а).



Function roots() will do the job in this example. But Mathcad root() function will not let you down in the case of srict numerical cases (I am repeating myself to often...).

By the way, there is an error in Int() function (z not defined). I think this was also already mentioned few times...

znotdefined.PNG

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#17 Опубликовано: 29.07.2019 08:37:58
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

By the way, there is an error in Int() function (z not defined)


Quite right Radovan, transit via 'z' not needed 6179.
Pitot Mach was one of my very first SS 5346.

#18 Опубликовано: 29.07.2019 10:42:06
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Function roots() will do the job in this example. But Mathcad root() function will not let you down in the case of strict numerical cases


Mathcad 11.2a "root" works same as Smath "roots", plot on scalar canvas.
I may have an example, considered useless compared to assigning Given/Find
lot more universal for about any project ... all done perfect.
Attached Mach-Pitot

Mach-Pitot.bmp
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений