| 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: , |
|