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²)
  • Rectangular cuboid - volume
  • Volume Of a Cylinder
  • character <
  • Price with VAT
  • Midpoint (2d)
  • when sentence contains a, return b, else return c
  • constant x.xxxx
  • convert HH:MM:SS into seconds

Algorithm

Algorithm doesn't exists


Create your family tree for free