## Slope/Gradient of a line

### Introduction

In mathematics, the **slope** or **gradient** of a line is a number that describes both the *direction* and the *steepness* of the line.

- The
*direction*of a line is either increasing, decreasing, horizontal or vertical.- A line is
**increasing**if it goes**up**towards the right. The slope is**positive**, i.e. m > 0. - A line is
**decreasing**if it goes**down**towards the right. The slope is**negative**, i.e. m < 0. - If a line is horizontal the slope is
**zero**. This is a constant function. - If a line is vertical the slope is
*undefined*.

- A line is
- The
*steepness*, incline, or grade of a line is measured by the absolute value of the slope. A slope with a greater absolute value indicates a steeper incline (or decline if the slope itself is negative).

Slope is calculated by finding the ratio of the "vertical change" divided by the "horizontal change" between (any) two distinct points on a line. This ratio is a number and it is the same number for every two distinct points on the same line.

In mathematical language, the slope m of the line is:

The concept of slope applies directly to grades or gradient in geography. Through trigonometry, the grade m of a road is related to its angle of incline *θ* by **m = tan θ**

*.*

### In Vector Calculus

Please see gradient in vector calculus for details.

### References & Resources

- http://en.wikipedia.org/wiki/Slope

#### Latest Post

- Dependency injection
- Directives and Pipes
- Data binding
- HTTP Get vs. Post
- Node.js is everywhere
- MongoDB root user
- Combine JavaScript and CSS
- Inline Small JavaScript and CSS
- Minify JavaScript and CSS
- Defer Parsing of JavaScript
- Prefer Async Script Loading
- Components, Bootstrap and DOM
- What is HEAD in git?
- Show the changes in Git.
- What is AngularJS 2?
- Confidence Interval for a Population Mean
- Accuracy vs. Precision
- Sampling Distribution
- Working with the Normal Distribution
- Standardized score - Z score
- Percentile
- Evaluating the Normal Distribution
- What is Nodejs? Advantages and disadvantage?
- How do I debug Nodejs applications?
- Sync directory search using fs.readdirSync