Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/si/rosetta/exercises/triangle/triangle.om # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / si / rosetta / exercises / triangle / triangle.om` 19 lines ยท 765 bytes Raw Blame History 1 note Exercism-style exercise "triangle": https://exercism.org/tracks/python/exercises/triangle 2 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 3 note The sides a b c form a triangle when each is greater than 0 and the sum of any two is at least 4 note the third. equilateral: a triangle with all three sides equal; isosceles: a triangle with at 5 note least two sides equal; scalene: a triangle with all sides different. 6 note Check it with: sh exercise.sh exercises/triangle 7 om2 8 fn equilateral a f64 b f64 c f64 to bool 9 note replace this line with your solution 10 trap 13 11 end 12 fn isosceles a f64 b f64 c f64 to bool 13 note replace this line with your solution 14 trap 13 15 end 16 fn scalene a f64 b f64 c f64 to bool 17 note replace this line with your solution 18 trap 13 19 end