math

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2025 License: ISC Imports: 2 Imported by: 0

Documentation

Overview

Package math provides a convenient way to register extra standard math functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Import

func Import(ctx *goal.Context, pfx string)

Import registers in the given Context math variadic functions with standard names and given prefix and stores them into global variables. Prefix "math" is recommended, to avoid naming conflicts.

The defined math functions are (monadic) acos, acosh, asin, asinh, atanh, cbrt, cosh, erf, erfc, erfcinv, erfinv, exp2, expm1, gamma, log2, log10, log1p, logb, sinh, tan, tanh, trunc, (dyadic) jn, yn (defaulting to order-zero for monadic case).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL