math icon indicating copy to clipboard operation
math copied to clipboard

The official math libraries for Hedgehog Lab

This repo is archived

Please contribute this repo at https://github.com/Hedgehog-Computing/hedgehog-lab/tree/dev/hedgehog-libs/math


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) https://github.com/Hedgehog-Computing/math/issues/6

Document of example function for how to write, say, a mathjs wrapper function: https://github.com/Hedgehog-Computing/math/issues/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