473,467 Members | 1,373 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Triangular Matrix2

this is new mapping function needed for following
---------------------------------------------------------------
a11 a12 a13 .... a1n
0 a22 a23 .... a2n
0 0 a33 .... a3n
. .
0 0 0 .... ann
----------------------------------------------------
for example if we have n=5 : then the map like:
----------------------------------------------------
a1,1 a1,2 a1,3 a1,4 a1,5
0 a2,2 a2,3 a2,4 a2,5
0 0 a3,3 a3,4 a3,5
0 0 0 a4,4 a4,5
0 0 0 0 a5,5
---------------------------------------------------
so, kindly what the Mapping Function for this matrix in order to
represent it using
Single1 dimension Array, in which zero "0" element will not have
representation.
++++++++++++++++++++++++++++++++++++++++++++++++++ +++++

Oct 31 '06 #1
4 1336


Je-Givara wrote On 10/31/06 15:29,:
this is new mapping function needed for following
---------------------------------------------------------------
a11 a12 a13 .... a1n
0 a22 a23 .... a2n
0 0 a33 .... a3n
. .
0 0 0 .... ann
----------------------------------------------------
for example if we have n=5 : then the map like:
----------------------------------------------------
a1,1 a1,2 a1,3 a1,4 a1,5
0 a2,2 a2,3 a2,4 a2,5
0 0 a3,3 a3,4 a3,5
0 0 0 a4,4 a4,5
0 0 0 0 a5,5
---------------------------------------------------
so, kindly what the Mapping Function for this matrix in order to
represent it using
Single1 dimension Array, in which zero "0" element will not have
representation.
Je-Givara, I'm not going to answer this one (and I hope
no one else will, either). For one thing, it's not really a
question about the C language or how to use it; the answer
would be equally applicable in BASIC or Fortran or Pascal or
any other programming language that supports arrays. The
only C-related issue I can spot is the fact that C arrays
start at index [0] (which is not a universal practice among
programming languages), and this introduces a small amount
of confusion that needs to be ironed out when you implement
the mapping in C.

The second reason I decline to answer is that you have
already been given two fully-worked solutions to a related
but more complicated problem. If you have studied those
solutions and understood them, solving this problem ought to
be child's play. But if you've studied them and been unable
to understand you need more help than Usenet can give, and
if you haven't even bothered to study ... well, I'm too lazy
to waste time on lazy people.

Go back to the answers you received for your earlier
question, and apply the methods explained there to solve
this simpler one. GO!

--
Er*********@sun.com

Oct 31 '06 #2
to
Er*********@sun.com
Sorry MR Eric.
i'm not playing, and i never waste my time on Internet, due to i pay a
lot
of money to work, and second reasone i'm a student, i don't have a lot
of time to waste it to play at all.
i just want to get this formola as in real world
i tray some of anothers matrix and i get somehow soluations for them
but some of them i never get them like one's i asked in previous.

kindly Mr: Eric if u know how to get the formula in general
not in c program, please show me!
P.S: some of the soluted Matrix which i found formula i can send it to
you
if u want to see my work.

Nov 1 '06 #3
Je-Givara wrote:
to
>Er*********@sun.com

Sorry MR Eric.
i'm not playing, and i never waste my time on Internet,
Yes you do, and you waste other peoples time whilst you are about it.
due to i pay a
lot
of money to work, and second reasone i'm a student, i don't have a lot
of time to waste it to play at all.
A lot of us are here are paid to work and don't have a lot of time to
waste either because our jobs keep us too busy.

<snip>
kindly Mr: Eric if u know how to get the formula in general
not in c program, please show me!
I believe that Eric has already explained why he is not going to.
Further more, as a student, it is important that you learn how to do
your work, otherwise you are wasting your time and money and your
instructors time. That is why you are set problem to solve.

Of course, if there are parts of the explanations to your previous
similar problem that you did not understand and you ask for further
clarification on those points then people might provide it.

In addition, this is comp.lang.c so if what you want help with is not C
(which seems to be the case as you are asking for "the formula in
general not in c program") then you are in completely the wrong place
anyway.
--
Flash Gordon
Nov 1 '06 #4

at last i found the formula of this kind of matrix
and in general when u use manually u get the correct answer

this is the answer:
Arry (R,C) = {(R-1)(2n-R+2)/2} + {C-R+1}

i take it for n=5 and i found the row & column major address of this
representating 1 dimension Array
................................................
i hope sombody find my for the first MAP function.
with respect to group memberships.

Nov 2 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Nevets Steprock | last post by:
I'm writing a web program where one of the sections is supposed to output a correlation matrix. The typical correlation matrix looks like this: ..23 ..34 .54 ..76 .44 .28 ..02 .77 ...
1
by: KinGPIN | last post by:
hi ; I have a homework about CMatrix; and i had a problem ;in my homowork i hace functions and operators written for CMatrix class(this was my first homework); it is wanted to inherite the...
8
by: empire5 | last post by:
I want to eliminate the little triangular arrow poinger that appears tot he right of the menu item. Which control setting lets me do that.
13
by: mo/-/sin | last post by:
hi........... i m mohsin plz provide me the program which represents triangular matrix in c language.........
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.