Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tips: Implementer en hjelpefunksjon, pytagoras, og bruk en for-løkke i polygonCircum.

 

Code Block
perimeter polygonCircum([1 1 2], [1 2 2]) % 3.4142
perimeter polygonCircum([1 1 2 2], [1 2 2 1]) % 4
perimeter polygonCircum([1 2 4 5 3], [2 4 5 4 1]) % 11.7280