Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #12417 > unrolled thread

simultaneous equation

Started by"Trichy V. Krishnan" <biztvk@nus.edu.sg>
First post2012-11-22 09:34 +0000
Last post2012-11-23 08:29 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  simultaneous equation "Trichy V. Krishnan" <biztvk@nus.edu.sg> - 2012-11-22 09:34 +0000
    Re: simultaneous equation "Nasser M. Abbasi" <nma@12000.org> - 2012-11-23 08:29 +0000

#12417 — simultaneous equation

From"Trichy V. Krishnan" <biztvk@nus.edu.sg>
Date2012-11-22 09:34 +0000
Subjectsimultaneous equation
Message-ID<k8kri9$83t$1@smc.vnet.net>
Hi:

When I solve a simultaneous equation, the output looks as follows. How do I remove those ?1.? and the annoying wiggles in the superscript position in so many places.

With regards

trichy

Here is the whole thing. It's a small program... When I ran it anew, the superscript-wiggles are gone but the "1." persists. Thanks for the help.
trichy

In[1]:
x1 = 0.5 + (1/(4 t1)) (rsm - rsk);
x2 = 0.5 + (1/(4 t2)) (rLm - rLk);
x3 = 0.5 + (1/4) (rLk - n rsk);
x4 = 0.5 + (1/4) (rLm - n rsm);
ssk = a b x1 + (1 - a) g x3;
sLk = a (1 - b) x2 + (1 - a) g (1 - x3);
ssm = a b (1 - x1) + (1 - a) (1 - g) x4;
sLm = a (1 - b) (1 - x2) + (1 - a) (1 - g) (1 - x4);
Pik = ssk rsk + sLk rLk;
Pim = ssm rsm + sLm rLm;
Pidsm = D[Pim, rsm]; PidLm = D[Pim, rLm];
Solve[Pidsm == 0 && PidLm == 0, {rsm, rLm}]

Out[1]:
{{rsm -> -((0.5 a b + 0.5 (1. - 1. a) (1. - 1. g) + (0.25 a b rsk)/
          t1) (-0.5 (1. - 1. a) (1. - 1. g) - (0.5 a (1. - 1. b))/
          t2) - 1. (0.25 (1. - 1. a) (1. - 1. g) +
          0.25 (1. - 1. a) (1. - 1. g) n) (0.5 a (1. - 1. b) +
          0.5 (1. - 1. a) (1. - 1. g) + (0.25 a (1. - 1. b) rLk)/
          t2))/(-1. (0.25 (1. - 1. a) (1. - 1. g) +
         0.25 (1. - 1. a) (1. - 1. g) n)^2 + (-0.5 (1. - 1. a) (1. -
            1. g) n - (0.5 a b)/t1) (-0.5 (1. - 1. a) (1. - 1. g) - (
         0.5 a (1. - 1. b))/t2)),
  rLm -> (1. (0.25 (1. - 1. a) (1. - 1. g) +
         0.25 (1. - 1. a) (1. - 1. g) n) ((0.5 a b +
            0.5 (1. - 1. a) (1. - 1. g) + (0.25 a b rsk)/
            t1) (-0.5 (1. - 1. a) (1. - 1. g) - (0.5 a (1. - 1. b))/
            t2) - 1. (0.25 (1. - 1. a) (1. - 1. g) +
            0.25 (1. - 1. a) (1. - 1. g) n) (0.5 a (1. - 1. b) +
            0.5 (1. - 1. a) (1. - 1. g) + (0.25 a (1. - 1. b) rLk)/
            t2)))/((-1. (0.25 (1. - 1. a) (1. - 1. g) +
            0.25 (1. - 1. a) (1. - 1. g) n)^2 + (-0.5 (1. -
               1. a) (1. - 1. g) n - (0.5 a b)/
            t1) (-0.5 (1. - 1. a) (1. - 1. g) - (0.5 a (1. - 1. b))/
            t2)) (-0.5 (1. - 1. a) (1. - 1. g) - (0.5 a (1. - 1. b))/
         t2)) - (0.5 a (1. - 1. b) + 0.5 (1. - 1. a) (1. - 1. g) + (
     0.25 a (1. - 1. b) rLk)/t2)/(-0.5 (1. - 1. a) (1. - 1. g) - (
     0.5 a (1. - 1. b))/t2)}}

[toc] | [next] | [standalone]


#12423

From"Nasser M. Abbasi" <nma@12000.org>
Date2012-11-23 08:29 +0000
Message-ID<k8nc5b$dg0$1@smc.vnet.net>
In reply to#12417
On 11/22/2012 3:34 AM, Trichy V. Krishnan wrote:

> but the "1." persists. Thanks for the help.

Rationalize[result]  will make 1. become 1

--Nasser


[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web