trigonometry.md

April 18, 2026 ยท View on GitHub

Opcode: sin

Parameters

number theta

Description

Evaluates to the sine of theta.

Details

  • Permissions required: none
  • Allows concurrency: false
  • Requires entity: false
  • Creates new scope: false
  • Creates new target scope: false
  • Value newness (whether references existing node): new

Examples

Example:

(sin 0.5)

Output:

0.479425538604203

Amalgam Opcodes

Opcode: asin

Parameters

number length

Description

Evaluates to the arc sine (inverse sine) of length.

Details

  • Permissions required: none
  • Allows concurrency: false
  • Requires entity: false
  • Creates new scope: false
  • Creates new target scope: false
  • Value newness (whether references existing node): new

Examples

Example:

(sin 0.5)

Output:

0.479425538604203

Amalgam Opcodes

Opcode: cos

Parameters

number theta

Description

Evaluates to the cosine of theta.

Details

  • Permissions required: none
  • Allows concurrency: false
  • Requires entity: false
  • Creates new scope: false
  • Creates new target scope: false
  • Value newness (whether references existing node): new

Examples

Example:

(cos 0.5)

Output:

0.8775825618903728

Amalgam Opcodes

Opcode: acos

Parameters

number length

Description

Evaluates to the arc cosine (inverse cosine) of length.

Details

  • Permissions required: none
  • Allows concurrency: false
  • Requires entity: false
  • Creates new scope: false
  • Creates new target scope: false
  • Value newness (whether references existing node): new

Examples

Example:

(acos 0.5)

Output:

1.0471975511965979

Amalgam Opcodes

Opcode: tan

Parameters

number theta

Description

Evaluates to the tangent of theta.

Details

  • Permissions required: none
  • Allows concurrency: false
  • Requires entity: false
  • Creates new scope: false
  • Creates new target scope: false
  • Value newness (whether references existing node): new

Examples

Example:

(tan 0.5)

Output:

0.5463024898437905

Amalgam Opcodes

Opcode: atan

Parameters

number num [number divisor]

Description

Evaluates to the arc tangent (inverse tangent) of num. If two numbers are provided, then it evaluates to the arc tangent of num / divisor.

Details

  • Permissions required: none
  • Allows concurrency: false
  • Requires entity: false
  • Creates new scope: false
  • Creates new target scope: false
  • Value newness (whether references existing node): new

Examples

Example:

(atan 0.5)

Output:

0.4636476090008061

Example:

(atan 0.5 0.5)

Output:

0.7853981633974483

Amalgam Opcodes

Opcode: sinh

Parameters

number z

Description

Evaluates to the hyperbolic sine of z.

Details

  • Permissions required: none
  • Allows concurrency: false
  • Requires entity: false
  • Creates new scope: false
  • Creates new target scope: false
  • Value newness (whether references existing node): new

Examples

Example:

(sinh 0.5)

Output:

0.5210953054937474

Amalgam Opcodes

Opcode: asinh

Parameters

number x

Description

Evaluates to the hyperbolic arc sine of x.

Details

  • Permissions required: none
  • Allows concurrency: false
  • Requires entity: false
  • Creates new scope: false
  • Creates new target scope: false
  • Value newness (whether references existing node): new

Examples

Example:

(asinh 0.5)

Output:

0.48121182505960347

Amalgam Opcodes

Opcode: cosh

Parameters

number z

Description

Evaluates to the hyperbolic cosine of z.

Details

  • Permissions required: none
  • Allows concurrency: false
  • Requires entity: false
  • Creates new scope: false
  • Creates new target scope: false
  • Value newness (whether references existing node): new

Examples

Example:

(cosh 0.5)

Output:

1.1276259652063807

Amalgam Opcodes

Opcode: acosh

Parameters

number x

Description

Evaluates to the hyperbolic arc cosine of x.

Details

  • Permissions required: none
  • Allows concurrency: false
  • Requires entity: false
  • Creates new scope: false
  • Creates new target scope: false
  • Value newness (whether references existing node): new

Examples

Example:

(acosh 1.5)

Output:

0.9624236501192069

Amalgam Opcodes

Opcode: tanh

Parameters

number z

Description

Evaluates to the hyperbolic tangent on z.

Details

  • Permissions required: none
  • Allows concurrency: false
  • Requires entity: false
  • Creates new scope: false
  • Creates new target scope: false
  • Value newness (whether references existing node): new

Examples

Example:

(tanh 0.5)

Output:

0.46211715726000974

Amalgam Opcodes

Opcode: atanh

Parameters

number x

Description

Evaluates to the hyperbolic arc tangent on x.

Details

  • Permissions required: none
  • Allows concurrency: false
  • Requires entity: false
  • Creates new scope: false
  • Creates new target scope: false
  • Value newness (whether references existing node): new

Examples

Example:

(atanh 0.5)

Output:

0.5493061443340549

Amalgam Opcodes