Distance from a point to a line

Inputs

  • line ax + by + c = 0 -- a
  • line ax + by + c = 0 -- b
  • line ax + by + c = 0 -- c
  • point [x,y] -- x
  • point [x,y] -- y

Outputs

  • distance

Neuron type

Checked - ready to generate algorithm

Patterns

Pattern Input Output
1.
line ax + by + c = 0 -- a: -2
line ax + by + c = 0 -- b: 3
line ax + by + c = 0 -- c: 4
point [x,y] -- x: 5
point [x,y] -- y: 6
distance: 3.328
2.
line ax + by + c = 0 -- a: 6
line ax + by + c = 0 -- b: -5
line ax + by + c = 0 -- c: 10
point [x,y] -- x: -3
point [x,y] -- y: 7
distance: 5.506
3.
line ax + by + c = 0 -- a: 6
line ax + by + c = 0 -- b: -5
line ax + by + c = 0 -- c: 10
point [x,y] -- x: -3
point [x,y] -- y: 7
distance: 5.506

Applicable neurons

  • Plus (x + y)
  • Minus (x - y)
  • Multiple (x × y)
  • Division (x ÷ y)
  • Absolute value
  • Rounding to whole thousands of something
  • √¯(x² + y²)
  • x to the 2 (x²)
  • Compound interest: annual compounding
  • Rounding to whole thousands of something
  • character y

Algorithm

Algorithm doesn't exists


Create your family tree for free