Wafl Home

Primitive Data Types Tutorial

Function sqrt

Float function sqrt(x) computes square root of x. It is defined for non-negative float values x.

Source code:

{#
sqrt(4.),
sqrt(3433.32)
#}

Result:

{# 2.000000, 58.594540 #}

 

Table of Contents

Let's Start

Program Structure

Primitive Data Types

List

Tuple

Record

HTML

Command Line Interpreter

Using Web Servers

Syntax

Examples

Tips

The most of examples evaluates with both command line and Web server Wafl interpreters. If any example is based on specific features of an interpreter, it is explicitly annotated.