erik10

I have a degree in Mathematics and Physics from the Danish University Aarhus, comparable to a masters degree with thesis - majoring in Mathematics. In 1991-92 I was a visting scholar at UCLA, Los Angeles, following graduate courses in Applied Mathematics. Since 1992 I have been a teacher in a high school (gymnasium) in Denmark. Special interests: Applied mathematics, graphics and popularizing Mathematics.

MaplePrimes Activity


These are questions asked by erik10

Dear Maple users

I am working on a problem, which basicly is dealing with putting n identical marbles in k different boxes. I need to run through all possible combinations and do something with it. The latter is unimportant. Mathematics say there are binomial(n+k-1,k-1) different combinations. I have already produced a recursive procedure to solve the problem and it is displayed below. I have placed a counter in the procedure to control if the procedures get through...

Dear Maple users

The Statistics package contain a Histogram command which can produce a linegraph (or what you call it). Ex:

 

with(Statistics):

A:=[3,5,7,2,11,2,1,10,6,15]:

Histogram(A,discrete)

 

It will calculate the frequency of each of the outcomes as they appear in the list and will plot them accordingly: 

Dear Maple users

I am trying to simulate the distribution of Q-values (Karl Peason) in a Contingency table. In that regard I need to use a two dimensional iteration. It require quite a lot of time to perform the computations. Using the values below, it required 1.3 mio iterations and took about 5 minuttes on my computer. My question is if there are ways I can speed it up? It might be using different commands, which are executed faster, performing computations in the...

Dear Maple users

In a short Maple program I am dealing with a collection of random samples from a uniform distribution. My problem is that every time I call a procedure creating a sample, I get the exact same one! Every run needs a different seed. How do I get a new 'random' sample? I could probably let Maple create all from scratch calling the Sample command with a two-dimensional range, but this will requre a big memory ...

 

Here is part of my code:

My question is a bit vague, but I hope someone can point me in the correct direction for a solution anyway. A Maple Package was been defined and placed in the Lib folder in Maple 16. The package does contain a number of custom defined functions, say Cos(v) and Sin(v) - with a capital letter to distinguish them from the usual built-in functions in Maple. After having called the package using the with statement, the new function works well in the worksheet. It also works...

First 8 9 10 11 12 13 14 Page 10 of 16