##Lab #4 More Algebra Commands
Here we look at some of the basic commands you normally have done by hand with polynomials. The first two are greatest common factor, GCF, and least common multiple, LCM. Execute each of the blocks of commands. Make sure you look at the syntax of the command lines.
Notice the output for the last one!! That's certainly not what I expected. SAGE sometimes has a mind of its own. I will try adding a simplify command first.
Well, that didn't work! Now check out this special command. Take careful note of the syntax.
That's more like it!!!!!!!!! Everyone loves to factor polynomials, right? SAGE does too. Check out these. . .
higher degree polys are no problem for SAGE!!!
Finally, the expand command multiplies factors together.
We turn our attention to the arithmetic of fractions(rational expressions) and radicals. We'll look at how SAGE responds to addition, subtraction, multiplication and division. Note again that SAGE has a mind of its own when it comes to simplifying and sometimes it's impossible to override it.
Your turn!!
Find the LCM of and
Find the LCM of and (Make sure it's in simplest form)
Determine the GCF of and
Factor
Expand (wouldn't want to do this by hand!!!!!!)
Find the product of and
Divide by the fraction,
See what SAGE produces for
When it comes to radical expressions, again SAGE has a mind of its own. We know that when multiplying radicals together, we should just multiply the radicands and put the product under a single radical sign. SAGE doesn't seem to know this. For instance, let's try .
This is again another one of those times where you have to be smarter than the machine! We'll make SAGE do the dirty work with a little extra guidance. . .
How about combining like or unlike radicals like ? Since and , the solution should be . What does SAGE think about this?
Looks like SAGE behaved itself this time, but don't be surprised if you have to direct the show from time to time and sometimes, like with fraction addition, it might only do what it wants to do. YOU HAVE TO BE SMARTER THAN THE MACHINE!!!!!! Try your hand with these to see what SAGE returns.