HexLibraryHexLibrary
</> HexCodeSign inSign up
PythonJavaScriptTypeScriptCC++JavaPHPGoRustRubyBashSQLLuaPerlCOBOLPascalDelphiFortranDartSwiftC#JuliaGroovyRElixirHaskellKotlinScalaClassic ASPClipperMS-DOS
LESSONS
Introduction to HaskellVariables (let)Data TypesOperatorsStringsListsConditions (if / then / else)Iteration (map / sum)Functions
REFERENCE
📖 Overview
🖥️ Output
📦 Value & Type
🔢 Numbers & Math
Math operatorssqrt / abs / ^
✍️ String
📚 List
🔀 Condition
🧩 Function
Haskell›REFERENCE›Numbers & Math›sqrt / abs / ^

sqrt / abs / ^

Square root, absolute value, exponent.

Syntax

sqrt x   abs x   x ^ y

Description

sqrt gives the square root (returns a Double), abs the absolute value, and ^ the exponent (integer exponent). Can be used directly.

Example

Loading editor…

Expected output

9.0
5
1024

When to use?

Geometry, statistics, exponential calculations.

Related commands

Math operators
← Math operators
HexLibraryHexLibrary

Learn programming more clearly. Every command is explained line by line with colors, reinforced with runnable exercises, test your code instantly — all in one place, free.

Learn

  • Home
  • Languages & Lessons
  • HexCode

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Use

Other Projects

  • HexToolz
  • Free Service Manuals
© 2026 HexLibrary · The clearest way to learn code