File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11use mathcore:: parser:: Parser ;
2- use mathcore:: {
3- differential:: { DifferentialEquations , PDESolver } ,
4- MathCore ,
5- } ;
2+ use mathcore:: differential:: { DifferentialEquations , PDESolver } ;
63
74fn main ( ) {
85 println ! ( "Scientific Computing Examples\n " ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ fn test_complete_workflow() {
66 let math = MathCore :: new ( ) ;
77
88 // Parse expression
9- let expr = MathCore :: parse ( "x^2 + 2*x + 1" ) . unwrap ( ) ;
9+ let _expr = MathCore :: parse ( "x^2 + 2*x + 1" ) . unwrap ( ) ;
1010
1111 // Evaluate with variables
1212 let mut vars = HashMap :: new ( ) ;
@@ -15,10 +15,10 @@ fn test_complete_workflow() {
1515 assert_eq ! ( result, 16.0 ) ;
1616
1717 // Differentiate
18- let derivative = MathCore :: differentiate ( "x^2 + 2*x + 1" , "x" ) . unwrap ( ) ;
18+ let _derivative = MathCore :: differentiate ( "x^2 + 2*x + 1" , "x" ) . unwrap ( ) ;
1919
2020 // Integrate
21- let integral = MathCore :: integrate ( "2*x + 2" , "x" ) . unwrap ( ) ;
21+ let _integral = MathCore :: integrate ( "2*x + 2" , "x" ) . unwrap ( ) ;
2222
2323 // Solve equation
2424 let roots = MathCore :: solve ( "x^2 + 2*x + 1" , "x" ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments