The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
LambertW function
05-17-2020, 08:48 AM (This post was last modified: 11-07-2020 09:39 AM by Stevetuc.)
Post: #1
LambertW function
This cas program uses fsolve to calc Lambert fn

Code:
#cas
lmb(x):=
fsolve(equal(w*e^w-x,0),w)
#end

Graph from wikipedia
   

If x <0 lmb(x) returns both principal and negative branch solutions :

lmb(-0.5/e) returns [−2.67834699002,−0.231960952987]

lmb(-1/e) returns −0.999999972234 (negative and principal branch converge at -1 when x=-1/e)

lmb(1) returns 0.56714329041

lmb(2) returns 0.852605502014
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
LambertW function - Stevetuc - 05-17-2020 08:48 AM
RE: LambertW function - Stevetuc - 11-07-2020, 08:41 AM
RE: LambertW function - Albert Chan - 11-07-2020, 11:57 AM
RE: LambertW function - Stevetuc - 11-07-2020, 01:50 PM



User(s) browsing this thread: 4 Guest(s)