Message Boards Message Boards

GROUPS:

[✓] Plot the following function?

Posted 6 months ago
544 Views
|
2 Replies
|
1 Total Likes
|

Consider the following code:

f[b_] = ProbabilityDistribution[ b Exp[-bx] , {x, 0.01, \[Infinity]},   Assumptions -> b > 0];
Plot[PDF[f[1.5], x], {x, 0, 2}, PlotRange -> All]
2 Replies
Posted 6 months ago

I think you are missing a space between b and x in -bx. Or an explicit multiplication operator.

f[b_] = ProbabilityDistribution[b Exp[-b*x], {x, 0.01, \[Infinity]}, Assumptions -> b > 0];

Plot[PDF[f[1.5], x], {x, 0, 2}]

enter image description here

Posted 6 months ago

Thank You Hans Milton. It works

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract