MathGroup Archive 1999

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

Search the Archive

Re: TridiagonalSolve gone?


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