[scilab-Users] Convergence problem

Peter.Cusack at csiro.au Peter.Cusack at csiro.au
Tue Oct 19 00:40:25 CEST 2010


And I did the same, and he result is an array that I didn't inspect too closely. The problem though is that the core integration fails to converge when the upper bound is 2*%pi.

If I run integrate('sin(x)','x',0, 1.999*%pi) it converges.

Cheers;

Peter.

From: Julio Gonzalez-Saenz [mailto:julio.gonzalez at ymail.com]
Sent: Tuesday, 19 October 2010 00:39
To: users at lists.scilab.org
Subject: Re: [scilab-Users] Convergence problem

I ran the example on help, and it ran..


x0=0;x1=0:0.1:2*%pi;
X=integrate('sin(x)','x',x0,x1);


Regards,

Julio
________________________________
From: xavier roguiez <xr at geo.hmg.inpg.fr>
To: users at lists.scilab.org
Sent: Mon, 18 October, 2010 15:41:39
Subject: Re: [scilab-Users] Convergence problem

Le 18/10/2010 14:29, Julio Gonzalez-Saenz a écrit :
> Hi Jean,
>
> Without the entire definition of your formula, it is not possible to
> find the error.
>
> Regards,
>
> Julio Gonzalez
> PTS GmbH
> Aerospace Team
>
> ------------------------------------------------------------------------
> *From:* jean podlecki <jean.podlecki at sfr.fr<mailto:jean.podlecki at sfr.fr>>
> *To:* users at lists.scilab.org<mailto:users at lists.scilab.org>
> *Sent:* Mon, 18 October, 2010 15:22:27
> *Subject:* [scilab-Users] Convergence problem
>
> God afternoon,
>
> Here's my problem.
>
> -------------------------------------------------
>
> -->integrate('sin(x)','x',0,2*%pi)
>  !--error 24
> Problème de convergence ...
>
> at line      70 of function integrate called by :
> integrate('sin(x)','x',0,2*%pi)
>
> -------------------------------------------------
>
> Is it right ? How can I get the correct answer ?
>
> Jean.
>
>
I've got the same result ;
integrate('sin(x)','x',0,2.00001*%pi)  -> not converge
integrate('sin(x)','x',0,2.01*%pi)  -> runs but inacurate
integrate('sin(x)','x',0,1.991*%pi)  -> runs but inacurate
x=0:0.001:2*%pi; intsplin(x,sin(x)) -> runs but inacurate

wait for a gurou ?
xavier

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20101019/4d56e072/attachment.htm>


More information about the users mailing list