lemelinm

1445 Reputation

15 Badges

16 years, 332 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

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

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

 Christopher2222 and Markiyan Hirnyk

It's not working!  I forgot to tell you that this was an extract of a SINGLE line containing 2024 character.  Here how it apprears in Maple after the readdata:

 It look to me as a sequence of part of the data.  This leaded me to think that the problem was the file and the way it was store.  I opened a text editor (Notepad++) and I saw that it was stored with the "Automatic line wrapping".  So I was seeing a lot of line each with the [LF] code at the end.  So I "Select all" and choose "join lines".  And now I am seeing only one line of length 2024.

 

I re-execute the Maple file and the output is not pretty:

 

I think that the characters * + / etc cause the problem!

????????????

Any ideas?

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

 Christopher2222 and Markiyan Hirnyk

It's not working!  I forgot to tell you that this was an extract of a SINGLE line containing 2024 character.  Here how it apprears in Maple after the readdata:

 It look to me as a sequence of part of the data.  This leaded me to think that the problem was the file and the way it was store.  I opened a text editor (Notepad++) and I saw that it was stored with the "Automatic line wrapping".  So I was seeing a lot of line each with the [LF] code at the end.  So I "Select all" and choose "join lines".  And now I am seeing only one line of length 2024.

 

I re-execute the Maple file and the output is not pretty:

 

I think that the characters * + / etc cause the problem!

????????????

Any ideas?

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

@DuncanA 

Thank you for your support!

Of course, the solution of Preben Alsholm is short and sweet.  But I would like to know why my solution seems so negatif?

@DuncanA 

Thank you for your support!

Of course, the solution of Preben Alsholm is short and sweet.  But I would like to know why my solution seems so negatif?

3 4 5 6 7 Page 5 of 7