---
title: "Introduction"
canonical: "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/FunctionsProceduresAndPackages/introduction.html"
source: "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/FunctionsProceduresAndPackages/introduction.md"
part: "The Magma Language"
chapter: "Functions, Procedures, and Packages"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "The Magma Language", "source": "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/index-magma-language.md"}
  - {"title": "Functions, Procedures, and Packages", "source": "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/FunctionsProceduresAndPackages/index-functions-procedures-and-packages.md"}
prev: {"title": "Functions, Procedures, and Packages", "source": "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/FunctionsProceduresAndPackages/index-functions-procedures-and-packages.md"}
next: {"title": "Functions and Procedures", "source": "https://docs.magma-maths.org/v2.30-1/MagmaLanguage/FunctionsProceduresAndPackages/function-procedure.md"}
---

# Introduction

Functions are one of the most fundamental elements of the Magma language. The first section describes the various ways in which a standard function may be defined while the second section describes the definition of a procedure (i.e. a function which doesn’t return a value). The second half of the chapter is concerned with user-defined *intrinsic* functions and procedures.
