vv

13922 Reputation

20 Badges

10 years, 9 days

MaplePrimes Activity


These are replies submitted by vv

@Markiyan Hirnyk 

It works indeed but with very poor accuracy: only 3 correct digits in this case.

For this, f must be a formal powerseries (not a series in the Maple sense, which is a truncation, containing O(...)).

So,

f:=convert(exp(k*t)*cos(w*t),FPS,t,n);


g:=convert(f/exp(k*t),FPS,t);

After several conversions, it it possible to simplify g to
But probably for more complicated functions this will not work.

@Preben Alsholm 

This behavior of the roots is known.

If the coefficients are independently and identically distributed with a mean of zero,
the complex roots are on or close to the unit circle.

See:
https://en.wikipedia.org/wiki/Properties_of_polynomial_roots

@baharm31 

Yes, you have found one continuous solution. implicitplot suggests that other solutions exists. They can be obtained by combining distinct branches of the RootOf. You might want to plot all the branches (after giving values to parameters) and inspect the intersection points; a rather tedious task because the RootOfs will depend on x.

Note that your equation can be reduced to a polynomial one, so that the Lagrange expansion applies, see
https://en.wikipedia.org/wiki/Lagrange_inversion_theorem

but this gives only local solutions.

You use here the term "solution" for what in mathematics is called "continuous selections" for a set-valued function
x |--> {y : f(x,y)=0}; this also appear in implicit function theorems.

solve is not designed for such tasks. It finds (in principle) the set {y : f(x,y)=0} and it is on your side to "assemble" the selections. Note that this could be a difficult task and the number of selections could be infinite.

On the other side, implicitplot simply plots the set of points {(x,y) : f(x,y)=0} and it is your eye which detects the selections. This plot could then be used to effectively assemble some solutions (if they actually exist, because the plot could be misleading).

Edit. Example:

How many continuous solutions y = y(x) do you detect for (y - sin(x))*(y - cos(x)) = 0, 0 <= x <= 4*Pi ?
(I am sure that you will miss some of them.)

I just suggested that if you want eigenvectors than it is better to use Eigenvectors instead of solving the characteristic polynomial. This is the case with your 1.mw.

Your coefficiens are in the range 10^(-25) .. 10^36 (approx). The degree of the polynomial is 50.
This will produce huge roundoff errors.
As acer said, Digits must be increased, but only if you are sure that the initial coefficients are very accurate [their precission should be also increased].
Otherwise the result will be useless.
Usually in such cases the function must be pre-processed and normalized; and an error estimate is recommended.

 

@Markiyan Hirnyk 

Thank you (in the name of the OP) for this valuable info :-)

Probably theta, phi, psi cannot be retrived easily. But you could insert your own sliders for theta, phi, psi and rotate the plot using them (via orientation=...). This way you will know their values.

@mahmood180 

F:=(m,t) -> piecewise(m=0,1,m<=r,cos(m*t),m<=2*r,sin((m-r)*t));
b:=(n,m,t) -> piecewise(n-1<=N*t and N*t<n,F(m,2*Pi*N*t),0);

 

Yes, you are right. I have recommended to plot the hyperbola, but I did not :-)

Edit.

Actually, the corect solve call for this case would be:

solve(sys, useassumptions) assuming x*y+2*x+4*y+6<0;

and now the result is NULL.

@Markiyan Hirnyk 

You can't ask Maple such proofs. But it is a high-school problem!

P.S. Can you prove using Maple for example that if a number is a multiple of 9 then the sum of its digits is also a multiple of 9?

@Markiyan Hirnyk 

1. The post was not edited at all.

2. You are right here but it is not difficult to see that for any n, h(n) = h(k) for some k<100.

@Markiyan Hirnyk 

Did you read the second version?

Here is the Maple version of a the solution solution presented in the book.
It is a "one-liner"!

h:= n -> h(`+`(op(`^`~(convert(n,base,10),2)))): h(1):=1: h(4):=4;

So, the happy ages are:

select(t->h(t)=1, [$1..100]);
   [1, 7, 10, 13, 19, 23, 28, 31, 32, 44, 49, 68, 70, 79, 82, 86, 91, 94, 97, 100]

The reason why the recursive h works (and does not generate an "infinite recursion" message)
is because it can be proved that the only values h takes are 1, 2 and 4 (this is not mentioned
in the book, but see the wiki article also mentioned in Rouben Rostamian's worksheet), and f(2) =4.

A simple solution is possible in Maple even if this fact is not used/known.
It is obvious that the iterates f(n), f(f(n)), ... repeat. The next version of h
also computes this sequence if it is invoked with a 2nd argument.

h:=proc(n, dummy:=NULL)
local S:=NULL, a:=`+`(op(`^`~(convert(n,base,10),2)));
while not(a in {S}) do
  S := S,a;
  a:= `+`(op(`^`~(convert(a,base,10),2)))
od;
if dummy=NULL then min(S) else S fi
end;


This version can be used to verify that h(N) = {1,2,4}.

`union`( seq({h(n)},n=1..100) );
   {1,2,4}

First 163 164 165 166 167 168 169 Last Page 165 of 176