Carl Love

Carl Love

28055 Reputation

25 Badges

12 years, 360 days
Himself
Wayland, Massachusetts, United States
My name was formerly Carl Devore.

MaplePrimes Activity


These are replies submitted by Carl Love

@Thomas Richard Yes, that's what I was refering to.

Please don't change a Question after an Answer has been given! Make a new Question instead. I have an answer to your question about the error plot, but I won't give it until you put back the original Question.

@lemelinm According to the Wikipedia page "Root-mean-square deviation", for a dataset it is the same as the standard deviation. But the standard deviation of your dataset is 10.906, not 1.28. So what is your formula for RMS deviation?

Note that you can cut and paste your dataset directly into a Maple worksheet, and it thus becomes a 55x1 Matrix. There's no need to use file I/O for such a small dataset.

@casperyc Yes, a seq is usually a little faster than the corresponding for loop.

@mehdi jafari Since the stats package is deprecated, you might as well use Statistics:-QuadraticMean.

What do you mean by exporting? Do you want the data written a file in two columns: the first coordinate value and the second coordinate value? Note that your plot data exists in tabular form before you plot it, so you don't need to "extract" it from the plot. The data is simply

[seq([k[i],cos_phi2[i]],i=0..number_of_points)]

@mehdi jafari evalr is surely the correct thing to use. Indeed, the vote up is mine. If you use lprint to look at the internal structure of the objects generated by the Tolerances package, you will see that they are all of the of the form INTERVAL(........), which are precisely the things that evalr is for. I just find it amazing that there is no example of this on the page ?Tolerances and no mention of the use of INTERVAL.

For example, using the code in the original Question, take a look at lprint(Phi). Then look at lprint(evalr(Phi)).

Does anyone here know if this need to use evalr is documented anywhere? I don't see it mentioned at ?Tolerances . That page merely has a link to ?evalr at the bottom.

@mounir Matrix is spelled with a capital M. You used a lowercase m.

Also, there's no point in including the command M:= Matrix(convert(A, list)) inside the loop. It's just wasted operations. Put it after the loop.

@love maths I followed the link, and I see that Afn means Average(F, f||n), where Average is the procedure with the corrections made by Preben Alsholm. It seems that f||infinity is a Matrix of all ones for the example f0 given, although it is not immediately obvious to me how to prove that. Given that f||n converges to a Matrix with all entries equal, it is obvious to me that "triangle"(f||n) converges to the 0 Matrix.

Your code works for me in Maple 17; s contains all four constants of integration. What does your s contain?

@mounir 

M:= Matrix(convert(m, list));

@sarra The file link is working now.  I see what you mean. The functions appear different for the 5th, 9th, 10th, and 11th values of t. I think that the 5th is normal acceptable variation. But the numerical solution seems to become unstable starting at the 9th value of t. By the 11th value, it appears to be chaotic. I don't know why this happens, and I don't know much about finite-difference methods. For what it's worth, I set the numeric solution to be computed to 100 Digits and it did not change the situation. I know that certain finite-difference methods are inherently unstable under certain conditions related to the relative values of the spatial spacing h and the time spacing k; I don't remember the exact formula. What is the precise name of the finite-difference method that you are using?

@sarra Please try uploading the file again.

The last sum that you give is just the very well known sum of a geometric series:

sum(1/n^x, x= 1..infinity);

Then the nested sum is just a slight variation of the well known

sum((-1)^n/(n-1), n= 2..infinity);

First 553 554 555 556 557 558 559 Last Page 555 of 709