473,785 Members | 2,639 Online
Bytes | Software Development & Data Engineering Community
+ 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 1355


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
1844
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 .80 .99 I've written code to calculate the correlation data and it is populated in a vector like this:
1
1322
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 functions in CMatrix for CTriangular matrix ;and then inherite the CTriangular matrix as upper and lower triangular matrixes.In addition ;in the homework zero elements of matrixes will not be stored to use the memory efficiently;for example a diagonal...
8
1297
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
3087
by: mo/-/sin | last post by:
hi........... i m mohsin plz provide me the program which represents triangular matrix in c language.........
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9481
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10336
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10095
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8978
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7502
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5383
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3655
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.