Skip to content

magayagalabs/MathMojo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

109 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MathMojo logo

MathMojo · GitHub license

MathMojo is a library for mojo programming language that mathematics like constants, operations, functions, expressions, and part of the science! It was available for Linux 🐧, macOS 🍎, and Windows Subsystem for Linux 🪟 operating systems!

MathMojo's Features

MathMojo currently has the following features:

  • mathmojo
  • mathmojo.calculus
  • mathmojo.chemistry
  • mathmojo.metric_prefix (Wait!)
  • mathmojo.probability
  • mathmojo.sort
  • mathmojo.statistics

Examples

Square roots

  • MathMojo provides convenient mathematical functions for finding roots. For example:

    from mathmojo import sqrt
    
    fn main():
        # Square roots
        print(sqrt(25))
        print(sqrt(196))
  • NumPy provides convenient mathematical functions for finding roots like Python modules. For example:

    from python import Python
    
    def main():
        Python.add_to_path("path/to/module")
        np = Python.import_module("numpy")
        # Square roots
        print(np.sqrt(25))
        print(np.sqrt(196))

Getting Start

  1. Downloading and Installing magic (Modular Magic package manager and virtual environment manager). Learn more please.

  2. Clone the code mathematical libraries and then directory:

    $ git clone https://github.com/magayagalabs/MathMojo.git
    $ cd MathMojo

Copyright

Copyright (c) 2024-2026 Cyril John Magayaga.

About

Define Mathematical Library for Mojo 🔥

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages