FANDOM


Description Edit

A [VM] instruction that calculates and stores the cosine of a number.

Usage Edit

cos: [{store}, {num}]

hakkML Example Edit

name: cosine_example
blocks:
  core:
  entry: {name: 'main', loc: [0,1]}
code:
  main:
    - rem: stores the sine of 42 in core.0
    - cos: [core.0, 42]
    - rem: outputs '0.74314482547739423501469704897426'
    - out: core.0
    - exit: 0