triangular matrix

O

Obnoxious User

hi........... i m mohsin
plz provide me the program which represents triangular matrix in c
language.........

int triangular_matrix[4][4] =
{
{1,0,0,0},
{1,1,0,0},
{1,1,1,0},
{1,1,1,1}
};
 
M

mo/-/sin

hi........... i m mohsin
plz provide me the program which represents triangular matrix in c
language.........
 
J

Jens Thoms Toerring

mo/-/sin said:
hi........... i m mohsin
plz provide me the program which represents triangular matrix in c
language.........

int main( void )
{
int utm[ 2 ][ 2 ] = { { 1, 2 }, { 0, 3 } };
return 0;
}

HTH.
 
J

jacob navia

mo/-/sin said:
hi........... i m mohsin
plz provide me the program which represents triangular matrix in c
language.........

.... and why should we do your homework for free?
 
U

user923005

hi........... i m mohsin
plz provide me the program which represents triangular matrix in c
language.........

Here is a matrix which is both upper and lower triangular (bonus!).
Furthermore, it can be used as the identity matrix for certain small
matrices or even {in a pinch} as a scalar identity element:

static double ultriang[1] = {1.0};

HTH
 
A

Andrew Poelstra

hi........... i m mohsin
plz provide me the program which represents triangular matrix in c
language.........

This represents a triangular matrix:

/*

* **
** * *
* * *
* * *
*** **

** *
* * **
* * *
* * *
** ***

*/

int main(void) { return 0; }


Please give me credit for your art class.
 
A

Andrew Poelstra

This represents a triangular matrix:

/*

* **
** * *
* * *
* * *
*** **

** *
* * **
* * *
* * *
** ***

*/

int main(void) { return 0; }

(Bear in mind I'm using the word "represents" with very
little sleep ;).

[/OT]
 
O

osmium

:

... and why should we do your homework for free?

its not ma homework........... i want it bcoz i havnt learn the
concept of triangular matrix..........

<end quote>

Looking at a computer program as a way to learn mathematical concepts
strikes me as a spectacularly poor way to learn mathematics. Would you look
at am FFT program to learn the rudiments of Fourier analysis? Good God!

Start at this link and branch out from there if you need to.

http://en.wikipedia.org/wiki/Triangular_matrix
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,533
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top