Skip to main content
1-Visitor
April 29, 2013
Question

Solve a system of equations

  • April 29, 2013
  • 2 replies
  • 1219 views

Hi, I am having trouble solving this system of equations. I have set up a given block but must be overlooking something. Any help is appreciated. Thanks!

2 replies

25-Diamond I
April 29, 2013

1) Its the variable D which throws the error - its undefined. Either define it (or should it be D.r or D.s?) or use it a additional parameter in the function "soln".

2) Even if the solve block would work, the next line will give you the error as DeltaS is unknown. You have set up the solve block as a function, so you will have to call that function and assign the results to appropriate variables.

19-Tanzanite
April 30, 2013

See attached for how to get it to work (you'll need to check I've made the right assumptions about the D's).

Also, I suggest you turn your definition of deltaH into a function (of Tc and deltaS) as you use it in several different places. I haven't done this in the attached, but it will save you retyping the same thing over and over, which is often a source of error.

Alan