RE: Simple question from a biologist

• To: mathgroup at smc.vnet.net
• Subject: [mg67180] RE: [mg67139] Simple question from a biologist
• From: "David Park" <djmp at earthlink.net>
• Date: Sun, 11 Jun 2006 02:18:37 -0400 (EDT)
• Sender: owner-wri-mathgroup at wolfram.com

```Although it hasn't gotten you into any trouble here, in general it is better
to use symbol names that start with small case letters because then you can
be sure they won't conflict with Mathematica defined symbols. So rewriting
and taking the first (and only) solution...

sol = Solve[{{{-x, 0, z}, {x, -y, 0}, {0, y, -z}} .
{a, b, c} == 0, a + b + c == 1}, {a, b, c}][]

{a -> (y*z)/(x*y + x*z + y*z), b -> (x*z)/(x*y + x*z + y*z),
c -> (x*y)/(x*y + x*z + y*z)}

Then we could, for example, calculate all your rates in a list and check
that they are equal. We just write the expression for each rate and then
substitute the solution. You don't have to Solve again.

{a x, b y, c z} /. sol
Equal @@ %

{(x*y*z)/(x*y + x*z + y*z), (x*y*z)/(x*y + x*z + y*z),
(x*y*z)/(x*y + x*z + y*z)}
True

Or, perhaps more what you want, your could define the rate function as
follows...

rate[x_, y_, z_] = a x /. sol
(x*y*z)/(x*y + x*z + y*z)

Then you could, for example, plot the rate as a function of x and y for
fixed values of z.

Plot3D[rate[x, y, 1], {x, 0.00001, 2}, {y, 0.00001, 2}];

A couple of good books are 'The Beginner's Guide to Mathematica' by Jerry
Glynn & Theodore Gray and 'Mathematica Navigator: Graphics and Methods of
Applied Mathematics' by Heikki Ruskeepaa. But it is very worthwhile going
through Part I of The Mathematica Book. And using Help as much as possible.

David Park

To: mathgroup at smc.vnet.net

I'm a bit new to this so please bear with me. I solved this eqation:

Sol = Solve[{{{-x, 0, z}, {x, -y, 0}, {0, y, -z}}.{A, B, C} == 0, A + B + C
== 1}, {A, B, C}]

and got the ouputs of A, B and C interms of x,y, and z each.

Now I want to express a term called "rate" where rate = Ax = By = Cz in
terms of x, y and Z only.

So I tried to do this:
Solve[rate == Ax , rate] /. Sol

but I cannot get the rate in terms of x,y and z.
Is there a better way to do this? Also if someone knows of a better
tuttorial (better than the built-in tuttorial) for mathematica, please let
me know.

```

• Prev by Date: RE: List Comparison
• Next by Date: Re: Mathematica doesn't know what it's doing.
• Previous by thread: Re: Simple question from a biologist
• Next by thread: Getting Mathematica CellTags to export to TeX?
{"ft_lang_label":"__label__en","ft_lang_prob":0.87496924,"math_prob":0.98808646,"size":2364,"snap":"2022-27-2022-33","text_gpt3_token_len":768,"char_repetition_ratio":0.107627116,"word_repetition_ratio":0.04910714,"special_character_ratio":0.3536379,"punctuation_ratio":0.19185059,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99943244,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-08-13T20:30:57Z\",\"WARC-Record-ID\":\"<urn:uuid:df7ea60a-5bab-40fa-8802-20144fcc1f08>\",\"Content-Length\":\"45930\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:298e5166-33b7-4a9b-bea6-d6e1c3dd2be4>\",\"WARC-Concurrent-To\":\"<urn:uuid:43f1e835-2839-4a50-81f2-bf99815318f9>\",\"WARC-IP-Address\":\"140.177.205.73\",\"WARC-Target-URI\":\"http://forums.wolfram.com/mathgroup/archive/2006/Jun/msg00349.html\",\"WARC-Payload-Digest\":\"sha1:HXORWGFXML4KX6CADUYPSXJZPI53J5UC\",\"WARC-Block-Digest\":\"sha1:B4ANKJJQSZQODSAQI4FDVMSZNZ6WEY67\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-33/CC-MAIN-2022-33_segments_1659882571987.60_warc_CC-MAIN-20220813202507-20220813232507-00043.warc.gz\"}"}