Fresnel Cos and Sin integrals in mathlab

Status
Not open for further replies.

jalalak

Newbie level 2
Joined
May 22, 2006
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,297
Hi...
As we know Fresnel Cos integral is ∫cos(½πx²)dx
Fresnel Sin integral is ∫sin(½πx²)dx
The integral boundaries are zero to x . (0-x)
I want to establish these to matlab and Plot(C,S).
I know that matlab already known C and S...However I want to reestablish by this way.Later I will work at the exponential form of the formulas.
Can anybody help me ?
 

Code:
x = linspace( 0, 10, 1000 );
plot( mfun( 'FresnelC', x ), mfun( 'FresnelS', x ) );

You can also write something like

Code:
syms dzeta;
C = int( 'cos( pi / 2 * x ^ 2 )', 'x', 0, dzeta );
S = int( 'sin( pi / 2 * x ^ 2 )', 'x', 0, dzeta );
x = linspace( 0, 10, 1000 );;
plot( subs( C, dzeta, x ), subs( S, dzeta, x ) );

or install new Mapple functions with 'procread' call.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…