int(1+cos(x/2),x,-2*pi,2*pi)

Bugs

Modérateur : xcasadmin

alb
Messages : 1331
Inscription : ven. août 28, 2009 3:34 pm

int(1+cos(x/2),x,-2*pi,2*pi)

Message par alb » ven. mars 05, 2010 3:16 pm

Ou bien je vois double, ou bien il y a un bug...
int(1+cos(x/2),x,-2*pi,2*pi) retourne
8*pi
et le commentaire
Searching int of (x^2+2*x+1)/(2*x^2) where x is on the unit circle, using residues

parisse
Messages : 5894
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: int(1+cos(x/2),x,-2*pi,2*pi)

Message par parisse » ven. mars 05, 2010 5:50 pm

merci pour l'info, je corrige ca la semaine prochaine.

Code : Tout sélectionner

diff intgab.cc intgab.cc~
841c841
<           res = normal(periode*cst_two_pi/alpha*cst_i,contextptr)*somme_residues;
---
>           res = normal((b-a)/alpha*cst_i,contextptr)*somme_residues;

Répondre