Solved

# I don't understand my exercise

Posted on 2003-10-23
183 Views
My exercises is:

Make matrix operations : addition, subtraction, multiplication and division. You may limit the maximum dimension of the matrix.

what does thaht mean, i have to use array(s)
but i just don't understand the question
could someone help me ??

Louis
0
Question by:Louis_DePage
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 5
• 4

Author Comment

ID: 9608035
don't give me any code
just a hint
a translation to normal english
thanks
0

LVL 100

Expert Comment

ID: 9611902
Do you know what a Matrix is (not the movie) but in mathematical terms?

What Pascal data structure does a matrix look like?

How do you add one matrix to another?

Your best bet is the next day in class, get your hand in the air and ask questions.  Get your instructor to explain the assignment.
If you ask the right questions he might even do one of the parts for you.

mlmcc
0

Author Comment

ID: 9613710
well it's not an class assignment or something in a group it's just a exercise i found on the web
and no i don't know what it is about;
could you brievely explain my what a matrix is ???
or what i should know to solve tis problem

Louis
0

LVL 100

Expert Comment

ID: 9614152
A matrix is a mathematical entity that is useful in solving a variety of problems.  Is has rows and columns of numbers

2    2
3    4

This is  a 2x2 matrix

a  b           e  f         a+e   b+f
c  d    +     g  h   =   c+g   d+h

Subtracting is similar.

mlmcc
0

LVL 100

Expert Comment

ID: 9614219
0

Author Comment

ID: 9615509
okay now I know what matrices is all about
i know how to do the matrix operations
but which numbers should i place in my matrix and with what for matrix should i do the matrix operations ???
is the choice of the matrixes op to me ?
i know perfectely how to play around with arrays and so on
just which matrix should i take in this exercises ???

thanks
louis
0

Author Comment

ID: 9615540
should i ask the user the matrixes he wants ?
0

LVL 100

Accepted Solution

mlmcc earned 80 total points
ID: 9618526
I would start with several small matrices (hardcode them in the application) and get the code for adding and subtracting working, then work on multiplication by a scalar then multiply 2 matrices.

After that is working, you could develop code to read in a matrix.

The main reason for doing it this way is entering the data for a matrix takes time and bad input could lead to thinking the code is wrong.

Start  with a 2x2 matrix like

1  2        1  2      2  4
3  4        3  4      6  8

mlmcc
0

LVL 100

Expert Comment

ID: 9619451

mlmcc
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

### Suggested Solutions

Not everyone has adapted to a rapid advancement in technology; there are people who are reluctant or afraid to delve into this brave new world of IT. If you have a friend or a family member who suffers from the so-called technophobia, here is how yoâ€¦
The goal of this blog is: - To define the incident management process - To go over the key elements of an incident management system - To look into incident alert management tools that integrate with ConnectWise.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templaâ€¦
Simple Linear Regression
###### Suggested Courses
Course of the Month7 days, 2 hours left to enroll