vv

12453 Reputation

19 Badges

9 years, 287 days

MaplePrimes Activity


These are replies submitted by vv

                     

@acer 

In the floating point case the difficulty is inherent because the rank is not continuous wrt the matrix. The Rank function should return FAIL for a matrix for which the mathematical rank is not continuous. For example, Rank should return 2 for the matrix <1.,2.;3.,5.> and FAIL (or maybe 1..2)  for <1.,2.;3.,6.> and should depend on precision. All these in an ideal world.

@Mariusz Iwaniuk 

You should care because:

J:=Int(convert((cos(2*x))/(1+2*sin(3*x)^2), exp), x = 0 .. Pi/2):
evalf(J) = evalf(value(J));

    -3.452793607*10^(-14) = .3318985824+.2373064033*I

@Axel Vogt 

Actually it's enough to change the splitting points.

 

J:=Int(cos(2*x)/(1+2*sin(3*x)^2), x = 0 .. Pi);

Int(cos(2*x)/(1+2*sin(3*x)^2), x = 0 .. Pi)

(1)

with(IntegrationTools):

Split(J, [Pi/3, 2*Pi/3]);

Int(cos(2*x)/(1+2*sin(3*x)^2), x = 0 .. (1/3)*Pi)+Int(cos(2*x)/(1+2*sin(3*x)^2), x = (1/3)*Pi .. (2/3)*Pi)+Int(cos(2*x)/(1+2*sin(3*x)^2), x = (2/3)*Pi .. Pi)

(2)

op(1, %) + Change(op(2, %), x = Pi/3 + w) + Change(op(3, %), x = 2*Pi/3 + w);

Int(cos(2*x)/(1+2*sin(3*x)^2), x = 0 .. (1/3)*Pi)-(Int(sin((1/6)*Pi+2*w)/(1+2*sin(3*w)^2), w = 0 .. (1/3)*Pi))+Int(cos((1/3)*Pi+2*w)/(2*cos(3*w)^2-3), w = 0 .. (1/3)*Pi)

(3)

combine(%);

Int((sin((1/6)*Pi+2*w)+cos((1/3)*Pi+2*w)-cos(2*w))/(-2+cos(6*w)), w = 0 .. (1/3)*Pi)

(4)

expand(%);

Int(0, w = 0 .. (1/3)*Pi)

(5)

value(%);

0

(6)

@Rouben Rostamian  

Yes, you are right. The changes of variables failed for the intervals not included in [0,Pi].
It is sad that we have to check each simple step that Maple does :-(

P.S. Actually I was surprised that Preben's split seemed to work because I have tried myself similar methods and failed.

Edit.
We should choose only changes of variables with "unique" inverses (mainly for trig functions), Maple not being smart enough to find the correct branch.
Change(Int(f(x), x=3*Pi/2 .. 2*Pi), cos(x)=t);
         

is wrong. We'll have to use:

Change(Int(f(x), x=3*Pi/2 .. 2*Pi), x=2*Pi-arccos(t));

      

 

@Preben Alsholm

Yes, it's correct, simple, and can be done by hand (the 4 integrals cancel in pairs). Thank you.

My workaround was

T:=IntegrationTools:-Change(J, tan(x/2)=t):
subsindets(T, `=`, u -> (t=-infinity..infinity))/2:
simplify(expand(%)):
value(%);

 

I did not like it because the parity and periodicity is used and the degree of the polynomial is 12.
(It can be reduced to degree 6 with another change of variables but then evala() is needed.)

 

@tomleslie 

It is not correct because the antiderivative obtained by int(...,x) is not continuous.

@Rohith 

Yes. But this does not imply that such a function is unbounded; e.g. f : R --> R, f(x) = arctan(x).

simplify(maximize(Expr, x=0..2*Pi))   assuming a>0,b<0;
       
sqrt(a^2+b^2)

In most cases, for expressions with parameters the assumptions are necessary.

Here they should not be, but with location it's difficult otherwise.

 

@brian bovril 

I asked the same thing some time ago but nobody answered.

@Carl Love 

To completely understand the situation (with an .m file or %m string) it would be very nice to have an example of a simple procedure acting similar to Sol (which was generated by dsolve). Of course this procedure could be in another context.

@Carl Love 

Probably your browser is not set to recognize utf-8 (unicode) characters. I am sure that they are visible in the worksheet. I have changed the text to use ASCII characters.

I'd suggest to present a simplified version of your problem illustrating the type of the integro-differential equation/system you want to solve (which does not need several screens to be displayed).

@digerdiga 
The example was to recall what a CPV is. In our case a better example would be int(sin(sin(x)), x=-infinity..infinity, CPV) = 0.

There ar standard theorems. Note that our function has infinitely many poles in C. What formula have you used? Was it correct?
Give an example of a numerical result you have obtained.

 

@digerdiga 

For using residues some conditions must be verified, and the nature of the convergence of  the original integral J must be known.

Using CPV enhances the convergence. A CPV can be finite for an integrand with singularities.
E.g.  int(1/x, x=-infinity..infinity, CPV) = 0.
The table and the plot used the CPV (which equals J when this one exists).

 

 

First 61 62 63 64 65 66 67 Last Page 63 of 166