Skip to content

Module Functions

Jordan Welsman edited this page Oct 26, 2022 · 6 revisions

Overview

hello_world()

Greets the caller.

Usage: hello_world([str: name])

Arguments

  • optional: str: name

Returns

  • str: Hello, World! or Hello, {name}!

absolute()

Returns the absolute value of the argument.

Usage: absolute(<number: number>)

Arguments

  • required: number: number

Returns

  • number: result

add()

Returns sum of numbers passed in.

Usage: add(<number: number1>, <number: number2>, [number: additional number(s)])

Arguments

  • required: number: number1
  • required: number: number2
  • optional: number: additional number(s)

Returns

  • number: result

cube()

Returns the argument multiplied by itself, multiplied by itself again.

Usage: cube(<number: number>)

Arguments:

  • required: number: number

Returns:

  • number: result

divide()

Returns result of division of other arguments on first argument.

Usage: divide(<number: denominator>, <number: numerator>, [number: additional numerator(s)])

Arguments

  • required: number: denominator
  • required: number: numerator
  • optional: number: additional numerator(s)

Returns

  • number: result

exponent()

Returns the first argument raised to the second argument.

Usage: exponent(<number: number>, <number: exponent>)

Arguments

  • required: number: number
  • required: number: exponent

Returns

  • number: result

multiply()

Returns the product of arguments.

Usage: multiply(<number: number1>, <number: number2>, [number: additional number(s)])

Arguments

  • required: number: number 1
  • required: number: number 2
  • optional: number: additional number(s)

Returns

  • number: result

square_root()

Returns the root of the argument.

Usage: square_root(<number: number>)

Arguments

  • required: number: number

Returns

  • number: result

square()

Returns the argument multiplied by itself.

Usage: square(<number: number>)

Arguments

  • required: number: number

Returns

  • number: result

subtract()

Returns result of subtraction of other arguments on first argument.

Usage: subtract(<number: subtractor>, <number: number>, [number: additional number(s)])

Arguments

  • required: number: subtractor
  • required: number: number
  • optional: number: additional number(s)

Returns

  • number: result