Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'variables from lists' topicStudent Support Forum > General > Archives > "variables from lists"

Next Comment >Help | Reply To Topic
Author Comment/Response
Andrew Shaw
03/04/05 11:14am

I am wondering if anyone knows how do you make the terms in one list equal the terms in another? I have my list of variables KSO2 KH2O and KHSO3 and I calcualte values from constants for each into a list Kvalue. Then I want to assign the value of KSO2 to the first value in Kvalue list. Next KH20 to the second value and so on. Here is what I tried.

Clear[Subst, KSO2, KH2O, KHSO3]

Subst = {KSO2, KH2O, KHSO3}
A = {637.396, -13445.9, 1333.4};
B = {0,-22.4773,0};
C={-0.0151337,0 , 0};
D={-1.96211, 140.932, -21.274};
Kvalue = Exp[(A/T)+(B*Log[T]) + (C*T)+D]


Out[333]= {KSO2,KH2O,KHSO3}

Out[339]=({0.01312, 9.924705*^-15, 5.05904*^-8})

Out[340]=({0.01312, 9.924705*^-15, 5.05904*^-8}\)

Out[341]= KSO2

Out[342]= KH2O

Out[343]= KHSO3

URL: ,

Subject (listing for 'variables from lists')
Author Date Posted
variables from lists Andrew Shaw 03/04/05 11:14am
Re: variables from lists Furkan 03/05/05 03:50am
Re: variables from lists Andrew Shaw 03/11/05 11:17am
Re: variables from lists Forum Modera... 03/14/05 09:24am
Re: variables from lists Paul 04/18/05 5:02pm
Next Comment >Help | Reply To Topic