MathGroup Archive 2006

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

Search the Archive

Re: problem with modules

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