casperyc

957 Reputation

10 Badges

14 years, 313 days
University of Kent
Dr

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are replies submitted by casperyc

What's 'real time' and CPU time exactly? Which one says "efficient" (or "quicker")? I tried to look them up but I still dont quite get it. Clearly from your example, one tells Map is better and the other tells map is better.

And there was a mistake in my post. I did try

map2(myfunc, phi, p1, {CH||(1..5)});

and got a error with

"dimensions must be specified with this type of initializer".

 

Yes, i will look into the Threads library!

Never tried it.

 

Is it not by default for Maple to 'adapt' to computer and use multi thread then?

Thanks,

Casper

And there was a mistake in my post. I did try

map2(myfunc, phi, p1, {CH||(1..5)});

and got a error with

"dimensions must be specified with this type of initializer".

 

Yes, i will look into the Threads library!

Never tried it.

 

Is it not by default for Maple to 'adapt' to computer and use multi thread then?

Thanks,

Casper

Oh dear! Yes, it's a good question! I have no idea why I solve it sooooo many times!!!!!!

Many thanks!!!!

 

Again, as I general question, is there any tips for multicore computing? to fully use quadcore?

Or any documentation on 'efficient programming' and 'good practise'?

 

Many thanks,

 

Casper

Oh dear! Yes, it's a good question! I have no idea why I solve it sooooo many times!!!!!!

Many thanks!!!!

 

Again, as I general question, is there any tips for multicore computing? to fully use quadcore?

Or any documentation on 'efficient programming' and 'good practise'?

 

Many thanks,

 

Casper

I noticed this long time ago, but it does not concern me. Could be just a server error, or they are doing maintanance, or does not handle different timezone well.

Thanks, Doug, that's very useful to what I was just looking for.

 

Say in this example

P(4,[0,1]);

is what I was looking for. Then if I want to take out a combination, say [0,0,0,0].

Now it can be done by

 

a:=P(4,[0,1]);

then

a:=a[2..nops(a)];

 gives the desired answer.

 

How do I take out say [0,1,1,0] then? or take out [0,1,1,1]?

 

or any subs set of that?

 

Thanks!

 

Casper

Thanks, Doug, that's very useful to what I was just looking for.

 

Say in this example

P(4,[0,1]);

is what I was looking for. Then if I want to take out a combination, say [0,0,0,0].

Now it can be done by

 

a:=P(4,[0,1]);

then

a:=a[2..nops(a)];

 gives the desired answer.

 

How do I take out say [0,1,1,0] then? or take out [0,1,1,1]?

 

or any subs set of that?

 

Thanks!

 

Casper

Hi all,

 

Honestly, for academic purposes, I dont think it matters.

 

I have been studying in UK since 2006. I did foundation course, undergraduate, and then postgraduate.

As far as I know, UK universities (not all) only teach Maple. I dont know why. Really dont care.

But personally, I like trying different packages, so I have used Maple, Matlab and Mathematica as well as various others.

I have no stronge preference as long as they can help me studying, check my answers, and assissting my research.

 

Casper

myf refers to pagan 4390 's code

plot(myf(-1.645074,sigma),sigma=0..18000);

plot(myf(-1.645074,sigma),sigma=14000..18000);

plot(myf(-1.645074,sigma),sigma=16000..18000);

All good.

 

However,

plot(myf0(-1.645074,sigma),sigma=17000..18000);

Nope.....

 

I did the integration

myf2:=(mu,sigma)-> evalf(Int(exp(-(x-mu)^2/2/sigma^2)/sigma/sqrt(2*Pi)/(1+exp(-x)), x=-infinity..infinity));

myf2(-1.645074, 17535.26 );

with ans = 0.5005299403

 

And I wanted to explore the region where sigma changes...

 

But it does Not seem to be able to plot.

 

myf refers to pagan 4390 's code

plot(myf(-1.645074,sigma),sigma=0..18000);

plot(myf(-1.645074,sigma),sigma=14000..18000);

plot(myf(-1.645074,sigma),sigma=16000..18000);

All good.

 

However,

plot(myf0(-1.645074,sigma),sigma=17000..18000);

Nope.....

 

I did the integration

myf2:=(mu,sigma)-> evalf(Int(exp(-(x-mu)^2/2/sigma^2)/sigma/sqrt(2*Pi)/(1+exp(-x)), x=-infinity..infinity));

myf2(-1.645074, 17535.26 );

with ans = 0.5005299403

 

And I wanted to explore the region where sigma changes...

 

But it does Not seem to be able to plot.

 

That's very helpful. Thanks

That's very helpful. Thanks

I have tried different version of Maple,

First open with Maple 13, then open with Maple 14, it works.

I think I got it now!

the "four roots" are

a, -a mod n,

b ,-b mod n 

as you computed above.

 

I misunderstood what the notes meant.

I thought it's saying there are two root, then you just 'add'  plus and minus to them to get 4 roots....

I hope this time I am right LOL

Thanks.

 

casper

First 8 9 10 11 12 13 14 Last Page 10 of 22