Maple Maple and probabilities

  • Thread starter vladimir69
  • Start date
Gday,
I am trying to write some code in Maple involving probabilities. Here is an example of what I want to do:
with probability [tex]\frac{\sqrt{3}}{4}[/tex]
y:=3
with probability [tex]\frac{\sqrt{3}}{4}[/tex]
y:=4
with probability [tex]1-\frac{\sqrt{3}}{4}[/tex]
y:=5
its easy enough for a probability of 1/2 since you can use a random number to generate either a 0 or 1, and if the random number is 0 then you do such and such and if the random number is 1 then you do something else. but with probabilities like [tex]\frac{\sqrt{3}}{4}[/tex] it has proven to be a bit difficult for me. hope someone can help

thanks,
 

Want to reply to this thread?

"Maple and probabilities" You must log in or register to reply here.

Related Threads for: Maple and probabilities

Replies
0
Views
2K
  • Posted
Replies
0
Views
2K
  • Posted
Replies
0
Views
3K
Replies
0
Views
6K
Replies
0
Views
4K

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top