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 Help | Reply To Comment | Reply To Topic
 Author Comment/Response Thibault 02/07/13 04:23am In Response To 'Re: Re: Re: How used Do and Solve in the same t...'---------It's a mistake of myself when I replied to your post. In mathematica I do the sum for i=1 to Length[TauxZC] and not to Length[TauxCA] otherwise you are right it doesn't work. And I did an another mistake with my sum. Now all is ok. Tank you The right code is this one: 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`}; Do[TauxZC = Sort[Join[TauxZC, Cases[x /. Solve[100 ==Sum[TauxCA[[i]]*100/(1 + TauxZC[[i]])^i, {i, 1, Length[TauxZC]}] + (100+100*TauxCA[[Length[TauxZC] +1]])/(1 + x)^(Length[TauxZC] + 1), x], v_ /; v ∈ Reals && v > 0]]], {i, 1, 10}]; TauxZC Out[4]={0.558333, 0.58, 0.828692, 0.953213,1.1339, 1.31402, 1.49681, 1.66924,1.82803,1.97413,2.10933, 2.23435} 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 Help | Reply To Comment | Reply To Topic