Ask Your Question
1

How can I solve line equation in SageMath?

asked 2019-08-27 03:53:01 +0200

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 13:49:34 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-08-27 09:18:12 +0200

tmonteil gravatar image

updated 2019-08-27 09:26:31 +0200

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 13:50:46 +0200 )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-27 03:53:01 +0200

Seen: 277 times

Last updated: Aug 27 '19