Student Support Forum: 'How to Append output to a list, then plot.' topicStudent Support Forum > General > Archives > "How to Append output to a list, then plot."

 Next Comment > Help | Reply To Topic
 Author Comment/Response timothy s. kochanski 01/25/04 01:38am after setting up my program the following bit of code produces the output below. The output demonstrates that with decreasing cost for firm 1 and constant costs for firm 2, over iterations firm 1's profits increase while firm 2's remain constant. What I want to do is capture in a plot the collection of data points produced (profits for firm 1 and firm 2) from x=1 to x=10. In other words the output below is f[x] data for firm 1 and f[x] data for firm 2. I want to combine this data with varying levels of x (a time variable) and plot profit for firm 1 and firm 2 over time. For[i = 1, i < 5, i++, Print[CournotProfit1]; Print[CournotProfit2]; Cost1 = Cost1 - .1Cost1; CournotProfit1 = Simplify[q1cournot*(Pcournot - Cost1)]; CournotProfit2 = Simplify[q2cournot*(Pcournot - Cost2)]] 11.796 7.11111 11.8609 7.11111 11.9192 7.11111 11.9718 7.11111 etc.... URL: ,

 Subject (listing for 'How to Append output to a list, then plot.') Author Date Posted How to Append output to a list, then plot. timothy s. k... 01/25/04 01:38am Re: How to Append output to a list, then plot. Henry Lamb 01/29/04 01:53am
 Next Comment > Help | Reply To Topic