lemelinm

1490 Reputation

15 Badges

18 years, 138 days

 

 

--------------------------------------
Mario Lemelin
Maple 14.00 Win 7 64 bits
Maple 14.00 Ubuntu 10,04 64 bits
messagerie : mario.lemelin@cgocable.ca téléphone :  (819) 376-0987

MaplePrimes Activity


These are replies submitted by lemelinm

@mehdi jafari 

 

You took the time to help me and I am very thankful to you.

@Carl Love 

 

I create a matrix M as you told me (55x1).  Now I did :

>Statistcs:-QuadraticMean(M)

And get exactly the average number of counts = 100484.309.  Witch is the answer given.  Then I did the:

>StandardDeviation(M)

and BINGO, I get the 1.2891675

Congratulation Carl!  You save my day.  Thank you very much. :-)

@Carl Love 

 

It is the first time I try that way and in fact, it did create a matrix.  Wow!

 

Thank again,

@mehdi jafari 

 

Can you tell me how you have made a link for your two files.  I don't see no icons that I can use to link a document in my question.  Thank you for your help.

OH!  I think that you use the green upward arrow.  I remember now.  :-)

@Carl Love 

 

But I have no idea how he arrive at that.  I will think about it.  Have you been able to make the worksheet that I have included to work?  More over, waht do you mean to «simply paste» the data in a Matrix?

But first thing first, thank you for you quick response.

You will find the data file «DataFrequence.txt» with the 55 numbers.  Then the file I have been trying to make work «FrequencyCount»

You will note that I added a last line to close the data file.

I the text that I read, it is said that the RMS deviation from the mean of thenumber of counts = 1.28 counts.

Maybe I can place the problem in the contexte.  It is a system that count the number of  maximum of a sin wave during 1 sec.  It use an electronic wave crest counter.  The goal is to introduce the uncertainty principle.

Oups, I have just realise that I cannot attach my two files.  So here is the code:

*************

>restart;
>FileTools[Text][Open]("DataFrequence.txt");

«Error, (in FileTools:-Text:-Open) permission denied»
# I have close the file before.
>for i to 55 do A[i] := FileTools[Text][ReadFloat]("DataFrequence\
  .txt")
  od;

>for i to 55 do A[i] od;
 
>stats[describe, quadraticmean]([seq](A[i], i = 1 .. numelems(A)))
>FileTools[Text][Close]("DataFrequence.txt");
%;
Error, (in FileTools:-Text:-Close) file DataFrequence.txt is not open

**********

 

and the data:

 

100404
100485
100486
100484
100485
100485
100485
100485
100485
100485
100485
100485
100485
100485
100485
100486
100485
100484
100484
100485
100485
100484
100485
100484
100486
100485
100484
100479
100482
100482
100483
100483
100484
100482
100483
100484
100482
100482
100484
100483
100484
100485
100485
100485
100485
100485
100484
100485
100484
100485
100484
100486
100485
100485
100486

 

If there is another way to proceed to give you acces to those files, don't hesitate to tell me how.

 

Thank you in advance for your helpé

 

--------------------------------------
Mario Lemelin
Maple 18 Ubuntu 13.10 - 64 bits
Maple 18 Win 7 - 64 bits messagerie : mario.lemelin@cgocable.ca téléphone :  (819) 376-0987

Thank you both of you for your answers.  I will try zooming first and if it is not working for me, I will change it permanently.

 

--------------------------------------
Mario Lemelin
Maple 18 Ubuntu 13.10 - 64 bits
Maple 18 Win 7 - 64 bits messagerie : mario.lemelin@cgocable.ca téléphone :  (819) 376-0987

First of all, thank you acer for those manipulations.  I think that it confirm that sometimes, the students must do his part too.  I agree with the fact that sometthing should be done in that direction.  For instance, it would be praticle to be able to load the package RealDomain and then see automatic simplification (like in the equation (9) of your document).

 

What I will do in my webinar is to show the manipulations you did (thank you again) and then show that in some cases, you have to use your own brain.  That is the power of our mind onver the machine.

 

Regards,

Hum!

 

Maybe this was not working because I was writng (in Document mode):

 

subs(x´(t)=v,eqn)

 

Anyway, your way work exactly  as I wanted.  Thank you!

 

--------------------------------------
Mario Lemelin
Maple 17.01 Ubuntu 13.10 - 64 bits
Maple 17 Win 7 - 64 bits messagerie : mario.lemelin@cgocable.ca téléphone :  (819) 376-0987

First, the result show a (2) term under the square root.  And notice that if you do the first command, you will have:

sqrt((2))*sqrt(g/b)    (a)

But look at what happen then if I multiply (before the combine command) this result (a) by sqrt(2) :

 

sqrt(2)*sqrt((2))*sqrt(g/b)  (b)

 

Not a pretty result.   But thank you for that try.

Your are right.  I did not see it.  Thank you.

 

--------------------------------------
Mario Lemelin
Maple 17.01 Win 7 -  64 bits
Maple 17.01 Ubuntu 12.04 LTS - 64 bits
messagerie : mario.lemelin@cgocable.ca téléphone :  (819) 376-0987

Your are right.  I did not see it.  Thank you.

 

--------------------------------------
Mario Lemelin
Maple 17.01 Win 7 -  64 bits
Maple 17.01 Ubuntu 12.04 LTS - 64 bits
messagerie : mario.lemelin@cgocable.ca téléphone :  (819) 376-0987

@Christopher2222 

 

"We choose to use Maple as often we can and do the other things, not because they are easy, but because they are hard, because that goal will serve to organize and measure the best of our energies and skills, ..."


So I shall complete the task inside Maple ... for the pleasure too :-)

@Christopher2222 

 

"We choose to use Maple as often we can and do the other things, not because they are easy, but because they are hard, because that goal will serve to organize and measure the best of our energies and skills, ..."


So I shall complete the task inside Maple ... for the pleasure too :-)

Both method (yours and Christopher2222) worked.  But I had to do some changes in the source file first.  Looking at the first three characters of str (after I saved it as one line of 2024 characters in utf-8), I realized that they were not part of the initial line that start in fact with a m (so it was a false location - 935 instead of 932).  So I went back to the source file and realize that, in the line, they were a bunch of "space" characters.  So with Notepad++, I delete them and save the file again by converting the line with ANSI code this time.  Reloading  and executing the Maple file seams to have solve the problem.

 

I am happy to have use the StringTools package.  All I need to do is to check if it's working under Linux and a way to see, say, the five letters befor and after the Qxp+zr6km.  But I can do it with my text editor so why bother in Maple?  By the way, the command:

StringTools[HasControlCharacter](str);

give false.  OUF!

 

Thank you both!

 

--------------------------------------
Mario Lemelin
Maple 15.01 Win 7 -  64 bits
Maple 15.01 Ubuntu 11,04 - 64 bits
messagerie : mario.lemelin@cgocable.ca téléphone :  (819) 376-0987
4 5 6 7 8 Page 6 of 8