## 721 Reputation

15 years, 93 days

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.

## A Danish package...

To use Maple in Danish high school a person (not me) has produced a package to make a number of operations more easy for the students. It contains among a lot of other features, a way to create Histograms from grouped data and not only raw data. I am a little puzzled why Maple hasn't got a command, which directly adresses this rather usual situation in Statistics!

Here is an example from the special package mentioned (intervals in the first column of a matrix and the frequenzies in the second column - eventually procentages. Notice that the width of the intervals may be different. It is the area of the column which counts, not the heights!):

Apparently the Americans don't see the need to depict grouped data into such Histograms. It could be visualizations of data from the Social Sciences or whatever ...

Erik

## Both suggestions are good to know...

Carl's method

Advantages: Very short code. Although sometimes an approximation, you can't see the differences in the plot, due to natural limitations in resolution.

Disadvantages: It is an approximation. It sometimes handles very long lists.

Alejandro's method

Advantages: It is exact and handles only lists of necessary length.

Disadvantages: Requires quite a few lines of code.

I am happy for both of your suggestions and have saved them to remember on my computer, also for use in future occasions.Also good that I got introduced to different new commands and operators, like the zip-operator, which is pretty smart! I am a bit puzzled, though, why there isn't a built-in command in Maple, which handles this pretty usual situation - eventually with the possible repetition problem taken out, so that all outcomes are supposed to be different.

## Thanks...

Georgios, I use the trick with the dot (floating point) often. Unfortunately it does not work in the custom defined functions. I have tested it!

Acer, thanks for the input! It sounds interesting with the 'localness'. It is not me implementing this package, but a friend of mine. I will forward it to him in the hope your hints will make something happen ...

Erik

## Thanks!...

Thanks Todd

I will show this to our data instructor. I appreciate your quick reply!

Regards,

Erik

## Easy way...

Perfect! And very simple in fact. Thanks a lot, Kitonum!

Erik

## I found a way to do it...

I also found a way to do it by just putting [ ] around the Maple output. The reason for having the solutions as a list was that I wanted to plot the solutions in the complex plane. Thanks a lot for your replies! I appreciate it.

Erik

## Time command...

Thanks to both of you. I learned the time command and several new ways to collect random numbers. I am trying to simulate how well the distribution of Karl Pearsons well-known Test Statistics is following the Chi-Square distribution. I will need a high number of samples, so probably I can use some of the techniques you describe.

Erik

## Bug in Import command?...

Hi lovinash

I independently experienced the same problem as you did. I searched the Internet for a solution and found your question at Mapleprimes. That's the reason I am answering this late. In the meantime Maple 16 has been released, but I guess the same problem happens in both versions. After looking for solutions for a long time without success, I tried closing down the Maple file with the import code. I reexecuted the worksheet and suddenly the error messages disappeared! Isn't that a bug?

Regards,

Erik

## Export Bug...

Pagan: Yes I am using 16.01, but the problem still persist. I guess I will contact Maplesoft tech support, as you suggest.

Erik

## Thanks for both ways to do it, Markiyan,...

Thanks for both ways to do it, Markiyan, and the link to a previous question dealing with the same issue. I guess it is the best Maple can do in this respect.

To ThU: Ctrl+Alt+o works with my Danish keyboard as well. Thanks!

Regards, Erik

## International shortcut keys...

Thanks a lot for referring me to that page. It will help me in the future!

Erik

## It worked!!!...

Hi Duncan

I didn't believe your suggestion a minut, but tested it of course, and it actually worked!!!

Can you explain the deeper meaning behind your suggestion? Why Ctrl+Alt+0? I am puzzled!

Thanks a lot,

Erik

## Danish keyboard...

Hi Duncan

I am using a Danish Keyboard. If I press only the Ctrl key and the button above it is the same as Ctrl+0, which is a short cut for zooming to 50%. So I need to press both Ctrl, Shift and the button above.

I am puzzled because it should not depend on which language keyboard is being used. I haven't experienced any other problems regarding shortcuts ... And Ctrl+= works on my stationary computer as well.

Erik

## Components...

Ok, maybe I should turn my attention toward components. Look like they are more advanced. Thanks!

Erik

## Framerate, number of frames and time ......

It is not entirely the same to add more frames. Adding more frames will make the movements more smooth, but it will also mean calculations lasting longer and result in a bigger file if you save it. I have actually been looking for the same feature as ricky, but can't find it ...

When I save the file, I actually remove the Maple output, since it will reduce the filesize considerable. If you keep the Maple output when saving, all frames will be saved along with the code. It is not a perfect solution, because when I open the file again and reexecute the code, I get a default plot area, which is squared. Often I need to resize it manually. Especially if those files are meant for other users, one need to explain what to do. I have been looking for a way to resize those plot areas automatically, but haven't found a way to do it.

It is a pity that those features are missing in Maple: An option to specify framerate and a way to specify the size of the plot area. Or maybe I have overlooked something, and there is a solution?

Erik

 1 2 Page 1 of 2
﻿