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 
Fresnel Integrals
10-30-2017, 01:47 PM
Post: #1
Fresnel Integrals
hi,
this is only a first version and has'n control for singular values. I hope someone could help to do better, thank you.

Fresnel_S(x) and Fresnel_C(x) are the functions for S(x) and C(x)
Fresnel_Sn(x) and Fresnel_Cn(x) are the correspondent functions, normalised with a π/2 factor by some authors, like Abramowitz and Stegun (see here).

Enjoy!

Salvo Micciché

Code:
EXPORT Fresnel_S(x)
// Fresnel integral S(x)
BEGIN
local t;
RETURN int(SIN(t^2),t,0,x);
END;

EXPORT Fresnel_Sn(x)
// Fresnel integral S(x) normalized π/2
BEGIN
local t;
RETURN int(SIN((π/2)*t^2),t,0,x);
END;

EXPORT Fresnel_C(x)
// Fresnel integral C(x)
BEGIN
local t;
RETURN int(COS(t^2),t,0,x);
END;

EXPORT Fresnel_Cn(x)
// Fresnel integral C(x) normalized π/2
BEGIN
local t;
RETURN int(COS((π/2)*t^2),t,0,x);
END;

∫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
Fresnel Integrals - salvomic - 10-30-2017 01:47 PM
RE: Fresnel Integrals - Eddie W. Shore - 11-04-2017, 02:38 PM
RE: Fresnel Integrals - salvomic - 11-04-2017, 03:55 PM



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