Post Reply 
erfi, erfw (w(z)) functions
11-01-2017, 06:03 PM
Post: #1
erfi, erfw (w(z)) functions
hi everybody,
Luckily Prime has inside its CAS two useful functions to magare problems connected to error treatment and statistics: the error function, erf() and the complementary error function, erfc().

If one want to "complete" that series, could think to implement also other two "sisters": the imaginary error function, erfi() and a function that I call "erfw", otherwise w(z) that handles every complex number.
See here for theory.

The code:
erfi()
Code:

#cas
erfi(x):=
return -i*erf(i*x)
#end

erfw()
Code:

// complex error function
#cas
erfw(x):=
return (e^-(x^2))*erfc(-i*x)
#end

Enjoy with the Prime!

Salvo Micciché

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
erfi, erfw (w(z)) functions - salvomic - 11-01-2017 06:03 PM



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