Solved

I don't understand my exercise

Posted on 2003-10-23
9
173 Views
Last Modified: 2010-04-16
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 ??
thanks in advance

Louis
0
Comment
Question by:Louis_DePage
  • 5
  • 4
9 Comments
 

Author Comment

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

Expert Comment

by:mlmcc
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

by:Louis_DePage
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
thanks in advance

Louis
0
 
LVL 100

Expert Comment

by:mlmcc
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


Adding is done by elements

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


Subtracting is similar.

mlmcc
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 100

Expert Comment

by:mlmcc
ID: 9614219
0
 

Author Comment

by:Louis_DePage
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

by:Louis_DePage
ID: 9615540
should i ask the user the matrixes he wants ?
0
 
LVL 100

Accepted Solution

by:
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

by:mlmcc
ID: 9619451
Glad I could help

mlmcc
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Owning a franchise can be the dream of a lifetime. It provides a chance for economic growth. You can be as successful as you want.  To make your franchise successful, you need to market it successfully. Here are six of the best marketing strategies …
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now