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²)
  • Rectangle - perimeter
  • NOR
  • ax + b = 0
  • First child X position
  • get month, day (mm-dd) from date (yyyy-mm-dd)

Algorithm

Algorithm doesn't exists


Create your family tree for free