Question: How do I plot a discrete set of probability data as a histogram in Maple?

I can't for the life of me figure out how to do something which seems so simple.

I want to plot eigenvalues 2ℏ2 and 6ℏ2 with probabilities of 1/2 each on a histogram. That is, have the bottom of the histogram read the two discrete eigenvalues and the vertical axis read the probability.

How would I code this? I tried several times and got errors about the Histogram command expecting different data or being unable to interpret the input.

Thanks for helping with this seemingly simple request.

Please Wait...