Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4646 > unrolled thread
| Started by | ". ." <xkziloj@gmail.com> |
|---|---|
| First post | 2011-08-29 07:50 +0000 |
| Last post | 2011-08-29 11:45 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
Plot Manipulate Table ". ." <xkziloj@gmail.com> - 2011-08-29 07:50 +0000
Re: Plot Manipulate Table Peter Pein <petsie@dordos.net> - 2011-08-29 11:45 +0000
| From | ". ." <xkziloj@gmail.com> |
|---|---|
| Date | 2011-08-29 07:50 +0000 |
| Subject | Plot Manipulate Table |
| Message-ID | <j3fgc2$fbm$1@smc.vnet.net> |
Hi all,
I want to plot
ConditionalExpression[(
a^y \[Lambda] (a + \[Lambda])^(-1 - y) Gamma[1 + y])/y!,
Re[a + \[Lambda]] > 0 && Re[y] > -1]
y is the variable. The value of may be 0.1 and the value of [\Lambda]
can be 1. It would be nice if "a" can be manipulable.
I have seen this post,
http://forums.wolfram.com/student-support/topics/26441
but can not port the idea to my case. I have tried,
Manipulate[
ListLinePlot[
Table[(a^y \[Lambda] (a + \[Lambda])^(-1 - y) Gamma[1 + y])/
y!, {y, 0, 10, 1}], PlotRange -> {0, 1}, DataRange -> {0, 5},
PlotMarkers -> Automatic], {a, 0.01, 1, 0.01}]
but obviously
[toc] | [next] | [standalone]
| From | Peter Pein <petsie@dordos.net> |
|---|---|
| Date | 2011-08-29 11:45 +0000 |
| Message-ID | <j3fu43$hep$1@smc.vnet.net> |
| In reply to | #4646 |
Am 29.08.2011 09:50, schrieb . .:
> Hi all,
>
> I want to plot
>
> ConditionalExpression[(
> a^y \[Lambda] (a + \[Lambda])^(-1 - y) Gamma[1 + y])/y!,
> Re[a + \[Lambda]] > 0 && Re[y] > -1]
>
> y is the variable. The value of may be 0.1 and the value of [\Lambda]
> can be 1. It would be nice if "a" can be manipulable.
>
> I have seen this post,
>
> http://forums.wolfram.com/student-support/topics/26441
>
> but can not port the idea to my case. I have tried,
>
> Manipulate[
> ListLinePlot[
> Table[(a^y \[Lambda] (a + \[Lambda])^(-1 - y) Gamma[1 + y])/
> y!, {y, 0, 10, 1}], PlotRange -> {0, 1}, DataRange -> {0, 5},
> PlotMarkers -> Automatic], {a, 0.01, 1, 0.01}]
>
> but obviously
>
Hi,
if you did not assign a value to lambda, the plot command does not know
what to do with the symbilc values.
Try
Manipulate[
With[{\[Lambda]=1},
...
]]
or add a slider for lambda too:
Manipulate[
ListLinePlot[
(* Gamma[1+ y] and y! cancel of course *)
Table[a^y*\[Lambda]*(a + \[Lambda])^(-1 - y), {y, 0, 10}],
PlotRange -> {0, 1}, DataRange -> {0, 5},
PlotMarkers -> Automatic
], {a, 0.01, 1, 0.01}, {{\[Lambda], 1}, 0, 2, 0.05}
]
hth,
Peter
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web