Learn R Programming

blmeco (version 1.0)

crosspoint: Gives the x and y-coordinates of the cross point of two straight lines

Description

Calculates the x and y-coordinates of the cross point of two srtaight lines based on their intercepts and slopes

Usage

crosspoint(a1, b1, a2, b2)

Arguments

a1
intercept of first line
b1
slope of first line
a2
intercept of second line
b2
slope of second line

Value

  • a two column matrix with x- and y-coordinates of the cross point(s)

Examples

Run this code
crosspoint(4, -0.1, 3, 0.1)

Run the code above in your browser using DataLab