Skip to content

absurdish/rs_sci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rs-sci

An advanced scientific computing crate, providing tools for math, physics and engineering calculations.

Features

  • Linear Algebra: Fully implemented vector and matrix algebra.
  • Complex Numbers: Out-of-the-Box complex number support.
  • Calculus: Integrate, differentiate, expand series and solve differential equations.
  • Statistics: Everything you might need.
  • Constants: 30+ mathematical and physical units, precision and unit convertable.
  • Algebra: create custom algebraic structures or use existing rings and fields
  • Units: SI, US, Astronomical, Compound, Physical... All kinds of units.

Usage

Add to your Cargo.toml:

[dependencies]
rs-sci = "0.2.0"

Or simply:

cargo add rs-sci

Examples

use rs_sci::complex::Complex;
use rs_sci::consts::Const;
use rs_sci::linear::{Matrix, Vector};
use rs_sci::units::*;

// complex number operations
let z1 = Complex::new(1.0, 2.0);
let z2 = z1.exp();

// physical constants with units
let c = Const::speed_of_light(Speed::MeterPerSecond);
let h = Const::planck_constant(Energy::Joule);

// linear algebra
let m = Matrix::new(vec![vec![1.0, 2.0], vec![3.0, 4.0]]).unwrap();
let v = Vector::new(vec![1.0, 2.0]);
let mv = (&m * &v).unwrap();

// unit conversions
let meters = Length::Foot.convert_to(Length::Meter);

Documentation

Too early for documenting since much more will be implemented in the near future

Contributing

Contributions are welcome! Please feel free to submit pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

the scientific library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages