vv

13805 Reputation

20 Badges

9 years, 309 days

MaplePrimes Activity


These are replies submitted by vv

@Markiyan Hirnyk 

Because the mapping  [u,v]  |-->  [sqrt(u)*cos(v),  sqrt(u)*sin(v)]  is area preserving (modulo a constant),
which is not the case with  [u,v]  |-->  [u*cos(v),  u*sin(v)] .

PS. Thank you for the link. BTW, Robert Israel is one of the most remarkable scientists I ever met (unfortunately not personally); it's a pitty that he is not active any more in this forum.

@Markiyan Hirnyk 

You forgot to execute the first part which defines r.

You said first

... codes includes the verification of the incidence to the region (the tringle or ellipse).

wrongly and without any explanation.

@Markiyan Hirnyk 

And I understand that you have objections for the ellipse too. Please explain.

@Markiyan Hirnyk

Of course.
The mapping (x,y) -> `if`(x+y<1, [x,y],[1-x,1-y])   applies the square [0,1]^2 onto a standard triangle similar to the mentioned Dirichlet distribution.

@Markiyan Hirnyk 

My code does not use incidence verification. It constructs effectively area preserving mappings just like Mathematica.

@Markiyan Hirnyk 

 

@Heitor 

It was just a joke, probably not a good one.

@torabi 

A general advise (at least for the future): it is a good idea to present mathematically the problem.  Otherwise what alternative method are you hoping for? It would imply a "reverse engineering" of your computations and probably nobody will want to spend his time for this. E.g. probably Runge-Kutta makes sense for the original problem, but not for the system you have presented.

 

@ecterrab 

What is the performance impact of Assume? After Physics:-Assume(...), Maple seems to use more memory.
It would be interesting to know why this operating mode was not included in the standard assume command (maybe via a kernelopts(assume) switch).

If you want to suppress the output for .txt use colon (:) after read
see also ?interface,echo

To use assumptions in .m file save `property/object` as mentioned in the answer.

 

@Kitonum 

Please try the version:

f := proc(u)
     local M:=convert(u,list);
     `if`(LinearAlgebra:-Determinant(Matrix(4,M)) mod 2 <>0, cat(M[]), NULL)
     end;
P:=Iterator:-CartesianProduct([seq(0..1)]$16, compile = false):
GROUP:=seq(f(M),M=P):   
nops([GROUP]);

which disables the compilation, and see if it works for you. It is just a little slower.

But you should try to solve the compiler problem, see ?compiler

@Carl Love 

GL(2,64) has > 1.6*10^7 elements.

But note that the methods here produce incorrect results for a non-prime q.

@acer 

Just want to mention that in this case allvalues does not garantee that all the critical points are returned,
as _ValuesMayBeLost shows.

@Carl Love 

I prefer the new Iterator

f := proc(u)
     local M:=convert(u,list);
     `if`(LinearAlgebra:-Determinant(Matrix(4,M)) mod 2 <>0, cat(M[]), NULL)
     end;
P:=Iterator:-CartesianProduct([seq(0..1)]$16):
GROUP:=seq(f(M),M=P):   
nops([GROUP]);

It is fast enough and straightforward. In other cases (when conversions are not needed) its speed is much better compared with other methods.
(Anyway the speed here is irrelevant since bigger dimensions are out of the question.)

@Carl Love 

LinearAlgebra:-Determinant works as well and is twice faster on my computer.
(Det would be better only for a big PRIME but in this case the enumeration is impossible.)

First 150 151 152 153 154 155 156 Last Page 152 of 176