hitaspdotnet / TON-MathLib

Welcome to The Math World in The Open Network !

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to The Math World on The Open Network !

This repo includes the most important mathematical functions in FunC and Tact for training purposes. However, some mathematical functions on The Open Network might be useful in real infrastructure contracts such as Oracles and Reputation Systems.

Required math functions will be listed below:

  • Linear Function
  • Quadratic Function
  • Median Function
  • Weighted-Median Function
  • Mode Function
  • Power Function
  • Square-Root Function
  • Cube-Root Function
  • Log2 Function
  • Log10 Function
  • Sin Function
  • Cos Function
  • Tan Function
  • Cotan Function
  • isPrime Function
  • Factorial Function
  • Greatest Common Divisor Function
  • Least Common Multiple Function
  • Solve Quadratic Equation Function



Hack-TON-Berfest Update :

How to collaborate?

  • Write the above functions in FunC
  • Write the above functions in Tact
  • Implement your own idea and then make PR
  • Re-Implement the implemented functions in a more optimum way
  • Write more tests for implemented functions

How to make PR?

  • Make sure to register in the bot and join the group
  • Fork this repo
  • Create a new branch in your forked repo
  • Choose one issue (from the issues page) and work on that
  • Commit to your new branch
  • Make PR to our repo
  • Make sure your PR has a comment which must include your Telegram ID like below:
    Telegram - https://t.me/alirezatabatabaeian

About

Welcome to The Math World in The Open Network !

License:MIT License


Languages

Language:TypeScript 100.0%