Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Simple Manipulate and Plot Problem' topicStudent Support Forum > General > Archives > "Simple Manipulate and Plot Problem"

Next Comment >Help | Reply To Topic
Author Comment/Response
Jaleno
05/12/13 06:33am

Hi, would anyone know what might be the problem with the Mathematica 9 code below:

rule = {z -> x^2 + 2 x + y}
Manipulate[
Plot[z /. rule, {x, 0, 10}],
{{y, 2, "y"}, 1, 5}
]

I suspect it's got something to do with how I understand and apply the substitution rules. The following works fine:

Manipulate[Plot[x^2 + 2 x + y, {x, 0, 10}], {{y, 2, "y"}, 1, 5}]

Thanks,

Jaleno


URL: ,

Subject (listing for 'Simple Manipulate and Plot Problem')
Author Date Posted
Simple Manipulate and Plot Problem Jaleno 05/12/13 06:33am
Re: Simple Manipulate and Plot Problem jf 05/12/13 4:56pm
Re: Simple Manipulate and Plot Problem Forum Modera... 05/13/13 11:52am
Re: Re: Simple Manipulate and Plot Problem Jaleno 05/13/13 5:27pm
Next Comment >Help | Reply To Topic