MathGroup Archive 2006

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

Search the Archive

Re: problem with modules

  • To: mathgroup at
  • Subject: [mg72246] Re: problem with modules
  • From: "Ray Koopman" <koopman at>
  • Date: Sat, 16 Dec 2006 05:17:57 -0500 (EST)
  • References: <elu3mb$di$>

jltrahan at wrote:
> Hello,
> I do not understand how to return a result from a module so that I can use
> the result globally. I am trying to generate 2 matrices from the module.
> For example,
> ludecomp[n_,A_]:=Module[{...},
> ...;
> Return[U//MatrixForm]
> Return[L//MatrixForm]]
> When I type ludecomp[n,A], it returns a result, however, when I try to
> input just the variable U, it
> doesn't return a value. I'd greatly appreciate any help that you can
> offer!
> Thank you,
> jamie

Return the two result matrices in a list {L,U}, without MatrixForm,
just as Eigensystem and SingularValueDecomposition return their
results in a list.

  • Prev by Date: Notebook Typesetting for Printing
  • Next by Date: Re: Missing <<Miscellaneous`PhysicalConstants` package
  • Previous by thread: problem with modules
  • Next by thread: RE: problem with modules