MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Syntax Questions


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