MathGroup Archive 1999

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

Search the Archive

Re: TridiagonalSolve gone?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg20357] Re: TridiagonalSolve gone?
  • From: "Kevin J. McCann" <kevinmccann at Home.com>
  • Date: Sun, 17 Oct 1999 02:45:35 -0400
  • Organization: @Home Network
  • References: <7u7tcp$p65@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Let me try again.

<<LinearAlgebra`Tridiagonal`

{a, b, c, d} =
    {{7, 1, 11}, {4, 8, 2, 12}, {5, 9, 3},{2,3,4,5}}

TridiagonalSolve[a,b,c,d]

or

TridiagonalSolve[{7, 1, 11}, {4, 8, 2, 12}, {5, 9, 3}, {2, 3, 4, 5}]

returns

{-(28/9), 26/9, 5/27, 20/81}


<psalzman at landau.ucdavis.edu> wrote in message
news:7u7tcp$p65 at smc.vnet.net...
> i'd like to use TridiagonalSolve[].   it doesn't seem to be working.
>
>    TridiagonalSolve[a,b,c,d]
>
> returns
>
>   TridiagonalSolve[a,b,c,d]
>
> with a, b, c and d expanded as lists.   so i went to the help browser and
> looked up TridiagonalSolve.  it gave a short example which i copied and
> pasted into a notebook.  everything went fine until the very last line:
>
> TridiagonalSolve[a, b, c, {2, 3, 4, 5}]
>
> which according to the help browser should have a value
>
> \!\({\(-\(28\/9\)\), 26\/9, 5\/27, 20\/81}\)
>
> but instead, in my notebook it returned:
>
> TridiagonalSolve[{7, 1, 11}, {4, 8, 2, 12}, {5, 9, 3}, {2, 3, 4, 5}]
>
> and i did make sure to <<LinearAlgebra`Tridiagonal`.   any thoughts as to
> why this function isn't working?
>
> pete
>
>
>



  • Prev by Date: Re: adding comments to a file in a different color
  • Next by Date: Animated gif
  • Previous by thread: Re: TridiagonalSolve gone?
  • Next by thread: Local Variables