Student Support Forum: 'How used Do and Solve in the same time' topicStudent Support Forum > General > "How used Do and Solve in the same time"

 < Previous Comment | Next Comment > Help | Reply To Comment | Reply To Topic
 Author Comment/Response Bill Simpson 02/06/13 12:57pm In Response To 'Re: Re: How used Do and Solve in the same time'---------Exactly your code In[1]:= TauxCA={0.58`,0.71`,1.1`,1.38`,2.04`,2.47`,2.94`,3.26`,3.49`,3.68`,3.85`,3.99`}; TauxZC={0.5583333333333332`,0.58`}; Solve[100==Sum[TauxCA[[i]]*100/(1+TauxZC[[i]])^i+(100+100*TauxCA[[Length[TauxZC]+1]])/(1+x)^(Length[TauxZC]+1),{i,1,Length[TauxCA]}],x]; x/.%; v=%; Do[If[v[[i]]∈Reals&&v[[i]]>0,AppendTo[TauxZC,v[[i]]]],{i,1,Length[v]}]; TauxZC=Sort[TauxZC]; TauxZC From In[1]:= Part::partw: Part 3 of {0.5583333333333332`, 0.58`} does not exist. From In[1]:= Part::partw: Part 4 of {0.5583333333333332`, 0.58`} does not exist. From In[1]:= Part::partw: Part 5 of {0.5583333333333332`, 0.58`} does not exist. From In[1]:= Part::partw: Part 6 of {0.5583333333333332`, 0.58`} does not exist. From In[1]:= Part::partw: Part 7 of {0.5583333333333332`, 0.58`} does not exist. From In[1]:= Part::partw: Part 8 of {0.5583333333333332`, 0.58`} does not exist. From In[1]:= Part::partw: Part 9 of {0.5583333333333332`, 0.58`} does not exist. From In[1]:= Part::partw: Part 10 of {0.5583333333333332`, 0.58`} does not exist. From In[1]:= Part::partw: Part 11 of {0.5583333333333332`, 0.58`} does not exist. From In[1]:= Part::partw: Part 12 of {0.5583333333333332`, 0.58`} does not exist. How do you sum (1+TauxZC[[i]])^i for i=1 to 12 when there are TauxZC only has 2 elements? URL: ,

 Subject (listing for 'How used Do and Solve in the same time') Author Date Posted How used Do and Solve in the same time Thibault 02/05/13 04:33am Re: How used Do and Solve in the same time Bill Simpson 02/05/13 5:03pm Re: Re: How used Do and Solve in the same time Thibault 02/06/13 04:07am Re: Re: Re: How used Do and Solve in the same t... Bill Simpson 02/06/13 12:57pm Re: Re: Re: Re: How used Do and Solve in the sa... Thibault 02/07/13 04:23am
 < Previous Comment | Next Comment > Help | Reply To Comment | Reply To Topic