...
Tips: Implementer en hjelpefunksjon, pytagoras, og bruk en for-løkke i polygonCircum.
Code Block | ||
---|---|---|
| ||
polygonCircum([1 1 2], [1 2 2]) % 3.4142 polygonCircum([1 1 2 2], [1 2 2 1]) % 4 polygonCircum([1 2 4 5 3,1],[3,7,8,4,1,3]) % 16.9163 Dette er fra eksempelet over. polygonCircum([1 2 4 5 3], [2 4 5 4 1]) % 11.7280 |