vv

13922 Reputation

20 Badges

10 years, 9 days

MaplePrimes Activity


These are replies submitted by vv


 

Two leaves (parametric) due to G.&M. Klimek   and   A. Heck respectively:

 

r := (1+sin(t))*(1+.3*cos(8*t))*(1+.1*cos(24*t)):
plot(r, t = 0 .. 2*Pi, coords = polar, scaling = constrained, axes=none);

 

S := t -> 100/(100+(t-Pi/2)^8) :
R := t -> S(t) * (2-sin(7*t) - cos(30*t)/2) :
plot(R, -Pi/2 .. 3/2*Pi, coords=polar, axes=none, color=green, thickness=3,  numpoints=500);

 

 

@gaurav_rs 

I think that it's too much trouble for such fine-tuning in Maple.
There are much better approaches e.g. TikZ in LaTeX.

About the converse: it is theoretically possible to write a CAS in LaTeX (which is after all a programming language);
of course nobody is going to do this.

Sorry, I do not have this information. I have used it only occasionally, just instead of soving by hand.

BTW, it would be interesting a speed comparison versus Sage.

@marekszpak 

OK, but the algorithm is not very complicated and the code is clean, see e.g.

showstat(LinearAlgebra:-HermiteForm);

I'd suggest to test it before trying to program a better one.

 


 

restart;

with(LinearAlgebra):

M := <100, 0, 0; 0, 90, 0;  0, 0, 90>:

K := < 7, -3, 0; -3, 5, -2;  0, -2, 2>*10.^4:

E,Q:=simplify( [Eigenvectors(K,M)], zero)[];

E, Q := Vector(3, {(1) = 979.0980468, (2) = 427.9685315, (3) = 70.71119909}), Matrix(3, 3, {(1, 1) = .9999999999, (1, 2) = 1.000000000, (1, 3) = .3250334043, (2, 1) = -.9303268239, (2, 2) = .9067715611, (2, 3) = .6817996040, (3, 1) = .2731482332, (3, 2) = -.9793847180, (3, 3) = .9999999997})

(1)

interface(displayprecision=6):

Q[..,3]:=Q[..,3]/Q[1,3]: #manually; but a procedure is easy to write

E,Q;

Vector(3, {(1) = 979.0980468, (2) = 427.9685315, (3) = 70.71119909}), Matrix(3, 3, {(1, 1) = .9999999999, (1, 2) = 1.000000000, (1, 3) = 1.00000000009840, (2, 1) = -.9303268239, (2, 2) = .9067715611, (2, 3) = 2.09762933608449, (3, 1) = .2731482332, (3, 2) = -.9793847180, (3, 3) = 3.07660685507702})

(2)

 

@maple2015 

You must change the BC conditions. As stated the problem cannot be solved because w(x)=0 satisfies the ODE and the BC ; so, for psi you only have the condition psi'(K/2) = psi'(-K/2) = 0, which of course is not enough (the infimum of phi is obviously 0).

 

@maple2015 

The second objection remains. You cannot speak about "the" integration constant.
For example, the integral of 1/(x+1) can be written as ln(x+1) + C or  ln(2*x+2) + C  or ...
Also, what is this condition when w(x)=sin(sin(x))?

Now about the new formulation. In this case the problem seems to be without solution: taking y=0 the ODE for w(x) has order 2.

 

The formulation of the problem is not clear.
1. Which are the independent variable(s)? w = w(x) and psi=psi(y)? G seems to be constant (at least in the worksheet).

2. What do you mean by

(it is senseless, being defined up to an additive constant).

3. Explain your solving method mathematically in order to follow the Maple code.

 

@kuwait1 

Why should Maple give a warning? It's a legitimate integral but hard to compute.

Note that the argument of the hypergeometric function is not in the unit disk and it is considered by analytic continuation; also a branch point is present.

Even if we alter a bit the parameters of the hypergeometric function to [1/2, 1/2], [3/2] (in order to make an idea of its nature) we get something like:

Int(Int(arcsin((1/2)*sqrt(2)/(k-(1/5)*r))*(k-(1/5)*r)/(k+r)^4, k = 0 .. 10), r = 1 .. 2);

It's not simple but evalf works.

Did this function appeared from some computations or you simply took a more or less random complicated function with singularities?

 

 

 

@John Fredsted 

Actually the answer of solve is correct but incomplete: a=b-5,  but for b in 2..8 only!
A similar situation occurs for
solve(arcsin(sin(x))=x,x);
    
  x

 

 

@Markiyan Hirnyk 

Yes, it's a typical conversation with you.

I know what I said and it is true, see Fubini/Tonelli. No need for screenshots.

@Markiyan Hirnyk 

Ypu forgot theta = Pi/6.

@Markiyan Hirnyk 

f is OP's integrand of course.

@Markiyan Hirnyk 

A brief inspection confirms divergence:
int(f, k=1..10) assuming cos(p)>-1, cos(p)<-1/2, Z>0, Z<1/10;
         infinity

But the justification for extrema is easy: the feasible region is compact and the function is differentiable there.

@Kitonum 

First 114 115 116 117 118 119 120 Last Page 116 of 176