473,387 Members | 1,789 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Programming Challenge

The aim is to make a program in C which can calculate the value of a
determinant of any specified order.The program should work in the
following way:
INPUT:
N: 5 (order of the determinant)
Enter the 25 elements

OUTPUT:
Value of the determinant.

Candice

Nov 14 '05 #1
7 1357

<ca********@yahoo.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
The aim is to make a program in C which can calculate the value of a
determinant of any specified order.The program should work in the
following way:


For a "challenge" I would have picked something not as chewed out as
matrix-calculations. Are you sure you are not sneakily trying to
social-engineer your way out of your homework-assignments?

Nov 14 '05 #2
ca********@yahoo.com wrote:
The aim is to make a program in C which can calculate the value of a
determinant of any specified order.


Why don't you do your own homework?
Nov 14 '05 #3
On 4 Jan 2005 03:53:25 -0800, ca********@yahoo.com
<ca********@yahoo.com> wrote:
The aim is to make a program in C which can calculate the value of a
determinant of any specified order.The program should work in the
following way:


I don't know what you mean by 'determinant' in this case (matrices?
biology?), but it looks to me like homework. If you have a question
about the C language itself, please post it preferably with code
illustrating your problem, but we are not here to do your homework free
for you. On the other hand, if you wish to pay me...

Chris C
Nov 14 '05 #4
Determinant of a matrix is the modulus of it ie. |M|.
if M = [a b
c d] then
|M| = bc - ad

(I think)

Nov 14 '05 #5
On 4 Jan 2005 05:41:15 -0800, pe**************@yahoo.com
<pe**************@yahoo.com> wrote:
Determinant of a matrix is the modulus of it ie. |M|.
if M = [a b
c d] then
|M| = bc - ad

(I think)


Maybe (I remember modulus, I don't remember it being the same as the
determinant, but it's been almost 30 years since I looked at the
terminology of matrices). However, we're not here to write the code for
matrix problems, that's the original poster's problem...

Chris C
Nov 14 '05 #6
<ca********@yahoo.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
The aim is to make a program in C which can calculate the value of a
determinant of any specified order.The program should work in the
following way:
INPUT:
N: 5 (order of the determinant)
Enter the 25 elements

OUTPUT:
Value of the determinant.


Counter-challenge: TRY IT YOURSELF FIRST!

If you get stuck, post the code here, ask specific
questions, and you'll get plenty of help.

-Mike
Nov 14 '05 #7
pe**************@yahoo.com wrote:
Determinant of a matrix is the modulus of it ie. |M|.
if M = [a b
c d] then
|M| = bc - ad (I think)


You got the sign wrong. And that's the formula for 2x2 matrices, things
get a bit more interesting for matrices of higher ranks. Bonus points
will be given for a program that deals reasonably with cases where the
determinante is near to zero but the matrix elements aren't;-)

Regards, Jens
--
\ Jens Thoms Toerring ___ Je***********@physik.fu-berlin.de
\__________________________ http://www.toerring.de
Nov 14 '05 #8

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

Similar topics

17
by: Jared | last post by:
This is going to seem like a generic question that has been posed 1001 times and is probably very subjective, but I need some real world answers, rather than textbook answers. Let me give my...
7
by: basecamp | last post by:
what are the chances of finding / gaining work in programming c# cos at 47 i am looking for a new challenge, i used to code alot in c and inline assembler when DOS used to rule the roost and now...
0
by: richard | last post by:
The Python Game Programming Challenge (otherwise known as PyWeek) is only a week away from starting! Theme voting has started! http://www.mechanicalcat.net/tech/PyWeek/1 Richard
6
by: Samuel | last post by:
New Prizes for October Jrobots Programming Challenge. Jrobots is programming game hosted at <http://www.cfxweb.net/~jrobots> CFXweb. You play by programming in basic Java your own robot to...
0
by: richard | last post by:
The date for the second PyWeek challenge has been set: Sunday 26th March to Sunday 2nd April (00:00UTC to 00:00UTC). The PyWeek challenge invites entrants to write a game in one week from...
78
by: wkehowski | last post by:
The python code below generates a cartesian product subject to any logical combination of wildcard exclusions. For example, suppose I want to generate a cartesian product S^n, n>=3, of that...
4
by: Mark Tarver | last post by:
Prompted by a post on Catalan numbers in Qilang, I got into looking at ordinal numbers as defined by John von Neumann - see http://en.wikipedia.org/wiki/Ordinal_numbers 0 = {} 1 = {0} = {{}} 2...
0
by: Jeff Rush | last post by:
At PyCon this year we're going to have a multi-day game programming clinic and challenge. This is a first-time event and an experiment to find those in the Python community who enjoy playing and...
0
by: Richard Jones | last post by:
The next PyWeek game programming challenge starts next Sunday at 00:00UTC. If you're interested, there's definitely still time to sign up to the challenge. http://www.pyweek.org/ Theme voting...
0
by: Richard Jones | last post by:
The fourth Python Game Programming Challenge (PyWeek) has now concluded with judges (PyWeek being peer-judged) declaring the winners: Individual: Which way is up? by Hectigo...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...

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.