Skip to content

08-navigation ​

Source: examples/08-navigation.metta

Imports ​

This module has no imports.

Symbols ​

SymbolKindType
hypotenusefunction(-> Number Number Number)
sqrt-approxfunction(sqrt-approx $x)
squarefunction(-> Number Number)
sum-of-squaresfunction(-> Number Number Number)

Functions ​

hypotenuse ​

Kind: function

metta
(: hypotenuse (-> Number Number Number))

The hypotenuse of a right triangle with legs $a and $b.

Source: examples/08-navigation.metta:28

sqrt-approx ​

Kind: function

metta
(sqrt-approx $x)

A stand-in square root (identity here) to keep the example self-contained.

Source: examples/08-navigation.metta:31

square ​

Kind: function

metta
(: square (-> Number Number))

The square of a number.

Source: examples/08-navigation.metta:13

sum-of-squares ​

Kind: function

metta
(: sum-of-squares (-> Number Number Number))

The sum of the squares of two numbers.

Source: examples/08-navigation.metta:17

Released under the Apache-2.0 License.