# Thread: How to input data into maple with unknown constants?

1. ## How to input data into maple with unknown constants?

I'm about to give up on Maple 14. The equations are x+2y+3z=4, x +ky+4z=6, x+2y+ (k+2)z=6. I entered the equations and got up to this point. > eqlist := [eqn1, eqn2, eqn3]; and got the equations repeated back to me
> varlist := [x, y, z]; and got the 3 variables repeated back to me. When I tried to generate the matrix, I put in. A := genmatrix(eqlist, varlist, flag), and got genmatrix([x+2*y+3*z = 4, x+ky+4*z = 6, x+2*y+z(k+2) = 6], [x, y, z], flag). What did I enter wrong? did I have to incorporate K in some way in an input equation?

2. Code:
with(LinearAlgebra);
Matrix(3, 4, [1, 2, 3, 4, 1, k, 4, 6, 1, 1, k+2, 6]);
This will generate the matrix you want

The first two numbers specify the size of the matrix
Then just list the element as you go though the rows!

Note loading the linear algebra package will let you use the tools from that package.

Note you can also right click on the matrix and maple will give you a list of options to choose from as well.

TES

3. Not trying to be rude or make you do the work for me, But i'm completely new to maple 14, let alone maple in general. Can you copy and paste the input entries from maple onto the forum so i can learn how to do it, because that language just went over my head. Let me add that I have to get the equation to rref. So if you can do this for me you'd be a lifesaver, btw that code did not work for me.

4. Originally Posted by cwarga88
Not trying to be rude or make you do the work for me, But i'm completely new to maple 14, let alone maple in general. Can you copy and paste the input entries from maple onto the forum so i can learn how to do it, because that language just went over my head.
Just copy and paste the stuff from the window above. I can't upload an actual maple worksheet hut here is a screen shot as well.

5. Thank you so much you're the best.

6. ok real quick. How do I get the denominator = 0 in maple, in other words ksquared-3k+3=0 and solving for k

7. Originally Posted by cwarga88
ok real quick. How do I get the denominator = 0 in maple, in other words ksquared-3k+3=0 and solving for k
solve(k^2-3*k+3 = 0, k);

P.S. If you type ?solve or ?anything it will open the maple help for that command. it usually have example to help you see what you need.

8. yeah thanks so much man you really helped me out so much.