RosettaCodeData/Task/Naming-conventions/ALGOL-68/naming-conventions-1.alg
2023-07-01 13:44:08 -04:00

7 lines
479 B
Text
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

MODE ℵ SIMPLEOUT = UNION (≮INT≯, ≮REAL≯, ≮COMPL≯, BOOL, ≮BITS≯, CHAR, [ ] CHAR);
PROC cos = ( REAL x) REAL: ¢ a real value close to the cosine of 'x' ¢;
PROC complex cos = ( COMPL z) COMPL: ¢ a complex value close to the cosine of 'z' ¢;
PROC arccos = ( REAL x) REAL: ¢ if ABS x ≤ 1, a real value close
to the inverse cosine of 'x', 0 ≤ arccos (x) ≤ pi ¢;