Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

What would be the proper syntax to enter in WolframAlpha to find the equation of line, if I know two points on it. I know how to do it by hand, but I want to get into the proper syntax of WA.

share|improve this question
This question appears to be off-topic because it is about WolframAlpha and not about Mathematica or related products like gridMathematica, Wolfram Workbench, Player (Pro), and the CDF Player. See on-topic. –  Michael E2 Jan 23 at 13:23
Sorry, if I am off topic. The reason I asked this question is because I saw the existence of the tag wolfram-alpha-queries. I hadn't read the description, which indeed states: Use this for questions about calling Wolfram Alpha from Mathematica. Questions about Wolfram Alpha itself are off-topic. –  Alex Popov Jan 23 at 14:12
add comment

closed as off-topic by Michael E2, Pickett, Ajasja, m_goldberg, rm -rf Jan 23 at 15:01

  • The question does not concern the technical computing software Mathematica by Wolfram Research. Please see the help center to find out about the topics that can be asked here.
If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers

up vote 1 down vote accepted

What you want to do is to interpolate between values, WA understood this easily:


share|improve this answer
add comment

LinearModelFit[{{0,4},{4,20}},{1,x},x] worked for me

share|improve this answer
That works indeed. Strangely, in the mean time I also found an answer through experimenting: equation of line point (0;4) point (4;20). It sound really stupid but gives a lot more information. –  Alex Popov Jan 23 at 13:03
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.