System of Equations (Matrices)

Click For Summary
SUMMARY

The discussion focuses on solving a system of equations involving nickels, dimes, and quarters using MATLAB. The equations established are: N + D + Q = 1469, 0.05N + 0.10D + 0.25Q = 191.25, and N = 2D. The user initially calculated N = 640, D = 320, and Q = 509, but identified an error in the interpretation of the relationship between nickels and dimes. The correct relationship should state that the number of dimes is twice that of the number of nickels, leading to the equation D = 2N instead of N = 2D.

PREREQUISITES
  • Understanding of linear algebra and systems of equations
  • Familiarity with MATLAB for matrix operations
  • Basic knowledge of coin values and conversions
  • Ability to interpret and manipulate mathematical equations
NEXT STEPS
  • Learn how to set up and solve systems of equations using MATLAB matrices
  • Explore MATLAB's rounding functions and their impact on calculations
  • Study the relationship between variables in linear equations
  • Practice solving real-world problems using systems of equations
USEFUL FOR

Students, educators, and professionals in mathematics, engineering, or computer science who are interested in applying matrix methods to solve practical problems.

smashbrohamme
Messages
97
Reaction score
1


A jar contains nickels, dimes and quarters. There are 1469 coins in the jar totaling $191.25. Assuming that the number of dimes is exactly twice that of the number of nickels, how many (each) nickels, dimes and quarters are there in the jar?We were suppose to be using matrices to solve this, it is mainly a MATLAB simulation. The idea was to get us familiar with the basics of matlab, but it seems I did a simple error and got the problem wrong. I see where my error was with the final problem solution, but I can't figure out how to correct it; or why the correction would be the reason. (If that makes any sense).

My 3 equations were
N = Nickel
D = Dime
Q = Quarter

N + D + Q = 1469
0.05N + 0.10D + 0.25Q = 191.25
N - 2D = 0 *N = 2D*

I set up a 3x3 matric
1 1 1 * N = 1469
0.05 0.10 0.25 * D = 191.25
1 -2 0 * Q = 0

My answer using Matlab was
N=640
D=320
Q=509

I attached a screenshot of the Matlab command script.
 

Attachments

  • homework_problem.png
    homework_problem.png
    36.5 KB · Views: 584
Last edited by a moderator:
Physics news on Phys.org
You have as your third equation that N - 2D = 0, or N = 2D, but that means that the number of nickels is twice the number of dimes. Your problem states that the number of dimes is twice that of the number of nickels.
 
You appear to have "1.0e3* 1.913" when you should have 191.25 (1.0e3 * 1.9125). That might be because you have Mat Lab set to round off at too low an accuracy.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
Replies
5
Views
2K