formulating matries based on polynomials entries.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sheff
    New Member
    • May 2010
    • 21

    formulating matries based on polynomials entries.

    HI Everybody,

    I have got a polynomial S= [ 1 2 3 4 ];

    I want to write this in a matrix form so it goes,

    S= [ 1 0 0 0 ]
    [ 2 1 0 0 ]
    [ 3 2 1 0 ]
    [ 4 3 2 1 ]

    Any ideas of hwo this can be done in USING C PROG LANG???
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Use an array with 2 indexes

    int S[4][4];

    See Arrays Revealed for more information on multi-indexed arrays.

    Comment

    • sheff
      New Member
      • May 2010
      • 21

      #3
      HI Banfa, thnx for ur reply, the polynomial S= [ 1 2 3 4 ]must be formulated to the new S that is in the form of a matrix using some opertation, it will be part of code and the dimenation of the polynominal will vary each time , any ideas?

      Comment

      Working...