Skip to content

AlexanderDefuria/operations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Math Operations

This is a Rust library for performing mathematical operations and manipulating equations.

Installation

Add the following to your Cargo.toml file:

[dependencies]
operations = "0.1.1"

Usage

use math::{Operation, EquationMember};

fn main() {
    let operation = Operation::Multiply(vec![
        Operation::Value(2.0),
        Operation::Variable(Rc::new("x")),
    ]);

    println!("{}", operation.equation_repr());
}

// Prints 
"2.0 * x"

Features

  • Supports basic mathematical operations such as addition, subtraction, multiplication, and division.
  • Can manipulate equations by rearranging terms and solving for variables.
  • Provides a trait for custom equation members, allowing for easy integration with other libraries.

Contributing

Contributions are welcome! Open a PR or issue on GitHub to get started!

License

This library is licensed under the MIT License.

About

Basic algebraic and mathematical expressions for use with dynamic elements

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages