/math

The official math libraries for Hedgehog Lab

Primary LanguageJavaScriptApache License 2.0Apache-2.0

math

The official Math library for Hedgehog Lab, maintained by Hedgehog Computing.

Quick Start

  1. Open Hedgehog Lab at https://hhlab.dev/
  2. import math library and call the function
// Import the function
*import math:inv

// Initialize 2D array A
let A = [[1,2],[4,5]]

// Print the inverse of 2D array A
print(inv(A))

and you will see the result on the right:

[[-1.6666666666666667,0.6666666666666666],
[1.3333333333333333,-0.3333333333333333]]

Documentation

Document of functions to be implemented: (updated upon pulls and merges) Hedgehog-Computing#6

Document of example function for how to write, say, a mathjs wrapper function: Hedgehog-Computing#16

Document of styling guide, a brief description of a few guidelines we'd like followed for contributions: https://github.com/Hedgehog-Computing/Hedgehog-Script-Style-Guide

Thank you!

Community

Discord Server

Twitter