1,450 bytes added
, 19:57, 13 October 2017
<div style="font-size:30px">'''YMXC (KnownYArray,KnownXArray)'''</div><br/>
*<math>KnownYArray</math> and <math>KnownXArray</math> are set of values.
==Description==
*This function calculates the slope of the line.
*In <math>YMXC (KnownYArray,KnownXArray)</math>,<math>KnownYArray</math> is the Y values in the line and <math>KnownXArray</math> is the X values in the line.
*The slope of a line characterizes the direction of a line.
*To find the slope, you divide the difference of the y-coordinates of 2 points on a line by the difference of the x-coordinates of those same 2 points.
*Consider two points of <math>Y</math> Coordinates are <math>y_1</math> and <math>y_2</math> and <math>X</math> Coordinates are <math>x_1</math> and <math>x_2</math>.
*The equation used to calculate the slope from two points is:
<math>Slope= \frac{the change in Y's}{the change in X's}</math> Or
<math>Slope =\frac{y_2-y_1}{x_2-x_1}</math>.
==Examples==
#YMXC([3,4],[9,2])= -0.14285714285714285 4.285714285714286
#YMXC([-2,7],[5,-11]) = -0.5625 0.8125
#YMXC([4.2,14],[13,-29.3]) = -0.23167848699763594 7.211820330969267
==See Also==
*[[Manuals/calci/INTERCEPT | INTERCEPT]]
*[[Manuals/calci/SLOPE | SLOPE ]]
*[[Manuals/calci/PEARSON | PEARSON ]]
==References==
*[http://www.montereyinstitute.org/courses/DevelopmentalMath/COURSE_TEXT2_RESOURCE/U13_L2_T2_text_final.html Slope]
*[[Z_API_Functions | List of Main Z Functions]]
*[[ Z3 | Z3 home ]]