• Home
  • Readings
  • Github
  • MIES
  • TmVal
  • About
Gene Dan's Blog

No. 105: 70 Days of Linear Algebra (Day 8)

11 June, 2014 8:29 AM / Leave a Comment / Gene Dan

Reading: Section 1.8 – Linear Transformations (On Target)
Problems: Section 1.6 – Applications of Linear Systems (Behind – 2 Days)

Well, I was inconveniently incapacitated by a cold last week – I fell behind but I managed to catch up on the reading portion by covering four sections over the weekend. The problems take much longer so I’m still behind on that part. I’m hoping to catch up by this weekend, and then maybe use the July 4th weekend to give myself a cushion just in case I fall behind again.

So far, the problems haven’t been too difficult, aside from some proofing problems and some of the application problems that appear at the end of each section. For example, I had to solve the following vector equation with a computer algebra system (as specified in the problem – otherwise most of the problems are to be done by hand):

\[x_1\left[\begin{array}{c} 27.6 \\ 3100 \\ 250 \end{array}\right] + x_2 \left[\begin{array}{c} 30.2 \\ 6400 \\ 360 \end{array}\right] = \left[\begin{array}{c} 162 \\ 23610 \\ 1623 \end{array}\right] \]

Where \(x_1\) and \(x_1\) represent the tons of anthracite coal and bituminous coal burned at a steam plant, with the two vectors on the left side of the equation representing output (heat, sulfur, dioxide, and particulate matter) from burning these two different types of coal, and the vector on the right representing total output. To solve this equation for \(x_1\) and \(x_1\), we can row reduce the corresponding augmented matrix:

\[\left[\begin{array}{rrr} 27.6 & 30.2 & 162 \\ 3100 & 6400 & 23610 \\ 250 & 360 & 1623 \end{array}\right] \]

The point of the problem is to determine what amounts of each type of coal are required to produce the given amount of heat and waste product. I thought this would be a straightforward problem to solve, but I ran into some trouble when I tried to row reduce the matrix in sage:

ubuntu@ubuntu-desktop: ~-sage-6.2-x86_64-Linux_231

The result above tells me that the system is inconsistent, which to me looked incorrect. I checked my input over and over again for about 30 minutes until I looked up the sage documentation (RTFM, right?) and tried defining the matrix over the ring of rationals (notice the ‘QQ’ in the matrix function below):

ubuntu@ubuntu-desktop: ~-sage-6.2-x86_64-Linux_232

Which produced the correct answer. So it looks like I ran into a precision issue in sage. These are some of the things you have to deal with using open source software – if I knew more about this I could try to fix it – but at least with open source software you have the freedom to try.

Posted in: Uncategorized

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Post Navigation

← Previous Post
Next Post →

Archives

  • August 2025
  • July 2025
  • September 2023
  • February 2023
  • January 2023
  • October 2022
  • March 2022
  • February 2022
  • December 2021
  • July 2020
  • June 2020
  • May 2020
  • May 2019
  • April 2019
  • November 2018
  • September 2018
  • August 2018
  • December 2017
  • July 2017
  • March 2017
  • November 2016
  • December 2014
  • November 2014
  • October 2014
  • August 2014
  • July 2014
  • June 2014
  • February 2014
  • December 2013
  • October 2013
  • August 2013
  • July 2013
  • June 2013
  • March 2013
  • January 2013
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • January 2011
  • December 2010
  • October 2010
  • September 2010
  • August 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • September 2009
  • August 2009
  • May 2009
  • December 2008

Categories

  • Actuarial
  • Cycling
  • FASLR
  • Logs
  • Mathematics
  • MIES
  • Music
  • Uncategorized

Links

Cyclingnews
Jason Lee
Knitted Together
Megan Turley
Shama Cycles
Shama Cycles Blog
South Central Collegiate Cycling Conference
Texas Bicycle Racing Association
Texbiker.net
Tiffany Chan
USA Cycling
VeloNews

Texas Cycling

Cameron Lindsay
Jacob Dodson
Ken Day
Texas Cycling
Texas Cycling Blog
Whitney Schultz
© Copyright 2026 - Gene Dan's Blog
Infinity Theme by DesignCoral / WordPress