Develop-implement method to identify numerically equivalent, Mechanical Engineering

For example, if one were provided with the set [3 1 3 -4 -6], the resulting answers would be [3 1 -4], [3 1 -4], an [3 3 -6], as these are the three sets of three values which sum to zero from the provided set. Notice that the first and second solution appear to be the same, but correspond to two solutions for the two different 3s in the provided set.

Your code should return the answer in 2D array format, where each row is a solution set (3 columns per row). If no solution sets can be found for a given input, the code should output a value of zero.

For this assignment you should find or develop an algorithm for finding these solutions. Once you have found or developed this algorithm, create a flowchart for this algorithm. Please conform to the algorithm format outlined in class.

Your code should be adequately commented, such that one would be able to understand your code by reading comments only. Your code should also include an initial code block giving a brief overview of how to use the function and your solution process, so that someone can query your program for this code block using the help command.

EXTRA CREDIT:

Develop and implement a method to identify and remove and solutions which are numerically equivalent, so that the result from your code doesn't have any repeated solutions. This should be able to match solutions which contain the same values but in different orders. This means that if the sets [3 1 -4] and [3 -4 1] are in the solution your method should still identify them as equivalent and only return one of them.

Posted Date: 3/25/2013 4:05:36 AM | Location : United States







Related Discussions:- Develop-implement method to identify numerically equivalent, Assignment Help, Ask Question on Develop-implement method to identify numerically equivalent, Get Answer, Expert's Help, Develop-implement method to identify numerically equivalent Discussions

Write discussion on Develop-implement method to identify numerically equivalent
Your posts are moderated
Related Questions
Reduce system to a single force and couple: Q: A system of parallel forces is acting on rigid bar as shown in the figure given below. Reduce this system to  a single force

Impulse, Momentum, Work and Energy: As a part of summary, you can remember various important principles in terms of following equations.  (i)        Impulse-Momentum equati

Determine the maximum torque - shaft: Determine the maximum torque that can be safely transmitted by a shaft of 400 mm diameter, if (a) the maximum allowable shear stress i

CAD-CAM Data Exchange: The interface SET transferred information on wire-frames, surfaces, B-representation and FEM models as well as technical drawings and scientific data. I

Find stress intensity factor - thick cylinder: A thick cylinder of r i = 10 mm, r 0 = 70 mm carried equal and symmetric radial cracks 6 mm long on opposite sides of inner su

A triangle ABC with vertices A (30,20), B(90,20), C(30,80) is to be scaled by a factor of 0.5 about a point X(50,40). Calculate :- (i) The composite transformation matrix; and

The press tressed bridge structure would look like as shown below,   The following factors influences the decision to select the particular prestressing, 1/Span of br

Q. Explain working of Nozzles? Nozzles supporting agitators, pumps, or other mechanical equipment, shall be suitably reinforced to withstand the mechanical loadings, specified

High Carbon Tool Steels Tools are implements such are employed to shape, cut or deform other materials. They are largely made in steel, although other alloys have also been i

Physical meaning of gradient of 2 nd order tensor?