Expand description
§tensor-calc
A Rust library for symbolic tensor calculus and Einstein field equation solving.
This library provides comprehensive tools for:
- Symbolic tensor calculus operations
- Einstein field equation solving
- Spacetime metric computations
- General relativity calculations
§Quick Start
use tensor_calc::{solve_vacuum_einstein_equations};
// Solve for Schwarzschild spacetime
let coords = vec!["t".to_string(), "r".to_string(), "theta".to_string(), "phi".to_string()];
let solutions = solve_vacuum_einstein_equations(&coords, "spherical", &[]).unwrap();
assert!(!solutions.is_empty());§Examples
§Computing Einstein Solutions
use tensor_calc::{solve_vacuum_einstein_equations};
let coords = vec!["t".to_string(), "r".to_string(), "theta".to_string(), "phi".to_string()];
let solutions = solve_vacuum_einstein_equations(&coords, "spherical", &[]).unwrap();
// Should find Schwarzschild and Reissner-Nordström solutions
assert_eq!(solutions.len(), 2);
assert_eq!(solutions[0].solution_type, "exact");