Re: Syntax Questions

• To: mathgroup at smc.vnet.net
• Subject: [mg50751] Re: [mg50731] Syntax Questions
• From: DrBob <drbob at bigfoot.com>
• Date: Sun, 19 Sep 2004 03:55:59 -0400 (EDT)
• References: <200409180948.FAA00552@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```Clear[a, b, c, d]
Off[Solve::"svars"]
s = First@Solve[{u1 == a v1 + b v2, u2 == c v1 + d v2}, {a, b, c, d}]
{a, b, c, d} = ({a, b, c, d} /. s)
T = {{a, c}, {b, d}}

Bobby

On Sat, 18 Sep 2004 05:48:37 -0400 (EDT), Dominik Werder <dwerder at gmx.net> wrote:

> While trying real easy Calculations with mathematica 5 on solaris I
> encountered difficulties finding the right syntax:
>
> Here I try solve some equations and write the four resulting variables
> a,b,c,d into a new matrix T:
>
> s = Solve[{u1 == a v1 + b v2, u2 == c v1 + d v2}, {a, b, c, d}];
> a = (a /. s)[[1]];
> b = (b /. s)[[1]];
> c = (c /. s)[[1]];
> d = (d /. s)[[1]];
> T = {{a, c}, {b, d}};
>
> I'm sure this could be done easier, but I dont know how?
>
> thanks!
> Dominik
>
>
>

--
DrBob at bigfoot.com
www.eclecticdreams.net

```

• Prev by Date: Re: Integratecrashes kernel
• Next by Date: Re: Syntax Questions
• Previous by thread: Syntax Questions
• Next by thread: Re: Syntax Questions