square(3scm)
π square π
okay bestie, welcome to the square(3scm) page from the Scheme Programmer's Manual β manual name folded in near the top, exactly as requested, we're doing this cute style now. π
β¨ NAME β¨
square β multiply a number by itself. periodt. π
π LIBRARY π
(import (scheme base)) ;R7RS
π¦ SYNOPSIS π¦
(square z)
πΈ DESCRIPTION πΈ
Returns the square of z. This is equivalent to (* z z). ngl, that's the whole plot. β¨
π RETURN VALUES π
Returns a single value which is a number. one number, one value, main character energy fr fr. π
π₯ EXAMPLES π₯
(square 42) => 1764
(square 2.0) => 4.0
π COMPATIBILITY π
Only exists in R7RS. Can be replaced with (lambda (z) (* z z)). so if you're on an older vibe, that lambda is your bestie. it's giving backup plan, and I'm obsessed. π«Ά
π ERRORS π
It is an error for this procedure to be passed the wrong number of arguments, and it is an error if z is not a complex number object. Implementations may signal an error, extend the procedure's domain of definition to include such arguments, or fail catastrophically. fail catastrophically is not a drill, bestie β that's literally what the page says. π
π SEE ALSO π
sqrt(3scm)expt(3scm)*(3scm)
β STANDARDS β
R7RS. iykyk. β
π§ HISTORY π§
The square procedure first appears in R7RS.
π AUTHORS π
This page is part of the scheme-manpages project. It includes materials from the RnRS documents. More information can be found at https://github.com/schemedoc/manpages/.
okay that's the whole page, mwah π β source/version: Scheme Programmer's Manual / square(3scm), dated 2022-04-05. π¦
π¦ where this page comes from
- nixpkgs unstable: scheme-manpages 0-unstable-2024-02-11
- π the page's license: MIT
- Copyright (c) 2022 Gwen Weinholt
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms