Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Getting a value into Table without {}' topicStudent Support Forum > General > Archives > "Getting a value into Table without {}"

Next Comment >Help | Reply To Topic
Author Comment/Response
VB
03/21/01 4:07pm

I have read the messages for FindRoot ans Solve --Thanks for the tips. However my problem is that i have wish to fill a Table with values from the Solve results without the {}braces. I used the tip to extract the solution but still the {} remain so when i send this Table to ListPlot it does not like it and errors.

Here is the code.

(* Make a funtion*)
f[z0_,z1_,a_,b_,U_]:=Solve[BetaRegularized[z0,z1,a,b==U,z1];
      
A=Table[0,{i,2}]
B=Table[0,{i,2}]
U=Table[0,{i,2}]
x=Table[0,{i,2}]

A[[1]]=1
A[[2]]=1
B[[1]]=1
B[[2]]=1
U[[1]]=100
U[[2]]=100


Print[''Results'']

(* I am trying to fill Table x with only the numbers not any other characters --but can't :( *)
Do[Do[x[[i]]=z1/.f[0,z1,A[[i]],B[[i]],U[[i]]];Print[x[[i]]],{i,2}],{1}]

   
(* ERROR MESG HERE*)

ListPlot[x,PlotJoined->True]







Any suggestions would be very helpful.

thanks
VB

URL: ,

Subject (listing for 'Getting a value into Table without {}')
Author Date Posted
Getting a value into Table without {} VB 03/21/01 4:07pm
Re: Getting a value into Table without {} Henry Lamb 03/25/01 9:44pm
Next Comment >Help | Reply To Topic