Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #12790
| From | "Nasser M. Abbasi" <nma@12000.org> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Strange behaviour of Solve |
| Date | 2012-12-15 10:46 +0000 |
| Message-ID | <kahker$d66$1@smc.vnet.net> (permalink) |
| References | <kaem88$5qb$1@smc.vnet.net> |
| Organization | Time-Warner Telecom |
Please do not start your variables and symbols and function names
with UpperCase letter. start everything with lowerCase. Using first
letter as lowercase is not recommended as it can conflict with internal
symbols and internal names.
On 12/14/2012 1:59 AM, friedrich.gehring@gmail.com wrote:
> I have a strange Problem with Solve: The number of solutions depends on the names for
the variables. I am using Mathematica 8.0.1.0 on Linux x86 and this is my code:
> Clear[K1, K2, K3, K4, K, G, Nf, vd, dg, d, l, a, b, s, p, t, v];
> K1 = ({
> {a - 2, -1, -3, -3},
> {-1, 0, 0, 0},
> {-3, 0, 0, -4},
> {-3, 0, -4, 0}
> });
> K2 = ({
> {0, -1, 0, 0},
> {-1, a - 2, -3, -3},
> {0, -3, -4, 0},
> {0, -3, 0, -4}
> });
> K3 = 1/3 ({
> {0, 0, 1, -4},
> {0, 0, -3, 0},
> {1, -3, -a - 2, -1},
> {-4, 0, -1, 0}
> });
> K4 = 1/3 ({
> {0, 0, -4, 1},
> {0, 0, 0, -3},
> {-4, 0, 0, -1},
> {1, -3, -1, -a - 2}
> });
> g = {g1, g2, g3, g4};
> K = Transpose[{K1, K2, K3, K4}];
> G[g1_, g2_, g3_, g4_] = Simplify[(d - 2) g - b * g.K.g];
> Par = {dg -> 4, d -> 3, Nf -> 2, vd -> 1/(8*Pi), l -> 2/3};
> Kurz = {a -> dg*Nf, b -> 4 vd l /Nf};
> sol =
> FullSimplify[Solve[G[s, p, v, t] == 0 /. Kurz /. Par, {s, p, v, t}]]
> Length[sol]
>
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
Strange behaviour of Solve friedrich.gehring@gmail.com - 2012-12-14 07:59 +0000 Re: Strange behaviour of Solve "Nasser M. Abbasi" <nma@12000.org> - 2012-12-15 10:46 +0000
csiph-web