• is the size of the Pentadiagonal matrix.

Description

• This function gives the pentadiagonal matrix of order 3.
• A pentadiagonal matrix is a matrix that is nearly diagonal.
• So it is a matrix in which the only nonzero entries are on the main diagonal, and the first two diagonals above and below it.
• The form of pentadiagonal matrix is:

.

• When n is the size of the matrix, a pentadiagonal matrix has atmost 5n-6 nonzero entries.
• Here MATIRX("pentadiagonal") is showing the penta diagonal matrix of order 3 with the integer numbers.
• Also in Calci users can get a deimal values with positive and negative numbers.
• The syntax is to get the decimal penta diagonal matrix is MATRIX("pentadiagonal:negative") and MATRIX(pentadiagonal:positive")

Examples

 -58 15 -4 -54 55 -75 21 -25 -64
 54 -56 -28 0 0 0 62 -96 -82 -49 0 0 15 23 20 30 94 0 0 80 95 76 -82 66 0 0 -60 -27 -82 -87 0 0 0 -43 19 89
 -59.9201 -79.7575 -20.1321 0 -47.0609 -7.8327 -29.9732 -12.449 -47.853 -67.097 -53.0942 -84.4662 0 -12.941 -31.0902 -52.3429
 86.6875 69.2842 15.4073 0 0 35.2144 31.0611 35.7501 77.7438 0 24.0962 42.6905 98.5696 5.86639 81.6962 0 80.9688 67.7996 45.0509 71.0336 0 0 32.1769 47.9279 48.1043