Hi!(adsbygoogle = window.adsbygoogle || []).push({});

I'm doing my first steps in Mathematica and I've wanted to do something simple like assigning a variable to the output and then use it. Something like this:

then i want to Sbustitute X1 in the expression Vp, with the value of the output of rX1.I'm using the function Replace but this doesn't do what I want. The output is:Code (Text):In:Vp = vprx == kprx2*X1;

In:dX1 = kp X0 + X1 (-cat kcatl - kgpx gpx - kprx2 prx2);

In:rX1 = Solve[dX1 == 0, X1];

Out:{{X1 -> (kp X0)/(catalase kcatl + gpx kgpx + kprx2 prx2)}}

when it should beCode (Text):

In:Replace[Vp, X1 -> rX1]

Out:vprx == kprx2 X1

Thanks a lot for all the help!Code (Text):Out:vprx==(kprx2kp X0)/(catalase kcatl + gpx kgpx + kprx2 prx2)

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Mathematica - (Very) Simple Question

Loading...

Similar Threads - Mathematica Very Simple | Date |
---|---|

Mathematica Cannot do the integral of the Hyper-geometric function? | Mar 11, 2018 |

Mathematica being very strange | Jun 19, 2014 |

Trouble downloading mathematica packages - probably a very quick solution | Mar 23, 2012 |

Very confusing problem in Mathematica | Oct 28, 2009 |

Mathematica help needed, please (very simple?) | Mar 3, 2007 |

**Physics Forums - The Fusion of Science and Community**