Group Abstract Group Abstract

Message Boards Message Boards

0
|
9K Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:

The function x appears with no arguments.

Posted 11 years ago
3 Replies

Don't put your constants inside brackets. Also, Dsolve doesn't take a starting and ending value for the dependent variable.

In[5]:= Nutrient = {x'[t] == (k/Va) (y[t] - x[t]), 
   y'[t] == (k/Vb) (x[t] - y[t]), x[0] == x0, y[0] == y0};

In[6]:= Solution = DSolve[Nutrient, {x[t], y[t]}, {t}]

Out[6]= {{x[t] -> (
   Va x0 + E^((k t (-Va - Vb))/(Va Vb)) Vb x0 + Vb y0 - 
    E^((k t (-Va - Vb))/(Va Vb)) Vb y0)/(Va + Vb), 
  y[t] -> -((-Va x0 + E^((k t (-Va - Vb))/(Va Vb)) Va x0 - 
     E^((k t (-Va - Vb))/(Va Vb)) Va y0 - Vb y0)/(Va + Vb))}}
POSTED BY: Frank Kampas

Nutrient = {x'[t] == (k/[Va]) (y[t] - x[t]), y'[t] == (k/[Vb]) (x[t] - y[t]), x[0] == [x0], y[0] == [y0]};

Solution = DSolve[Nutrient, {x[t], y[t]}, {t, 0, 200}

Suggest you put your code into a code sample block.

POSTED BY: Frank Kampas
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard