Ask Your Question
1

How can I solve line equation in SageMath?

asked 2019-08-26 20:53:01 -0600

andrewyg gravatar image

So we know we got standard 2D line equation that looks like y=a*x+b. And now I want to solve the a,b by given a few points. How can I achieve it?

I remember I've seen the solution somewhere, but I just can't find it out now.

edit retag flag offensive close merge delete

Comments

Homework ?

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 2019-08-27 06:49:34 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-08-27 02:18:12 -0600

tmonteil gravatar image

updated 2019-08-27 02:26:31 -0600

Let me just restate your question in a way that makes the answer obvious : if (x_0, y_0) and (x_1, y_1) are two of the few given points, you want to solve the system of equations y_0==a*x_0+b and y_1==a*x_1+b, where a and b are the unknown.

edit flag offensive delete link more

Comments

The "given a few points" proposition is a red flag...

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 2019-08-27 06:50:46 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2019-08-26 20:53:01 -0600

Seen: 30 times

Last updated: Aug 27