Crates.io | sauss-cramer |
lib.rs | sauss-cramer |
version | 1.0.2 |
source | src |
created_at | 2024-04-24 19:15:52.94466 |
updated_at | 2024-05-09 00:34:40.576087 |
description | Sauss-Cramer es una librería que ayuda a resolver sistemas 2x2 y 3x3 de ecuaciones lineales, usando el método de reducción de Crammer. |
homepage | https://github.com/pirsonxyz/sauss-cramer |
repository | https://github.com/pirsonxyz/sauss-cramer |
max_upload_size | |
id | 1219422 |
size | 5,736 |
use sauss_cramer::{solve_3_variables, print_3_variables_result};
fn main() {
let result = solve_3_variables(
5.0, 2.0, 1.0, -2.0, 5.0, -4.0, 1.0, -2.0, 3.0, 24.0, -14.0, 26.0,
);
print_3_variables_result(result); // result: x = 3, y = 2, z = 5.
}