Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Dynamic Table' topicStudent Support Forum > General > Archives > "Dynamic Table"

Next Comment >Help | Reply To Topic
Author Comment/Response
08/28/10 12:52pm

Hi there,

I'm trying to create a family of linear equations on the same plot. I need to vary the coefficients such that i get a wide range of gradients within a certain pattern .

Basically the pattern is y = Ax - (1/A)
I want to vary A from -5 to 5 in increments of 0.1

This is the code that I've been using:

family1 = Table[a x + (-1/a), {a, -5, 5, 0.1}]
Plot[family1, {x, -5, 5}]

This has worked for me so far but as part of my demonstration i would really like to use the slider tool.

I think im having problems because I'm not getting the Dynamic command where it should be. With this code the table changes in realtime but the graph is blank:

family1 = Dynamic[Table[a*x - (1/a), {a, -5, 5, z}]]}

Plot[family1, {x, -5, 5}]


URL: ,

Subject (listing for 'Dynamic Table')
Author Date Posted
Dynamic Table Dan 08/28/10 12:52pm
Re: Dynamic Table yehuda ben-s... 08/31/10 09:09am
Next Comment >Help | Reply To Topic