File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 99@test norm (Calculus. finite_difference (x -> sin (x), 1.0 , :forward ) - cos (1.0 )) < 10e-4
1010@test norm (Calculus. finite_difference (x -> sin (x), 1.0 , :central ) - cos (1.0 )) < 10e-4
1111@test norm (Calculus. finite_difference (x -> sin (x), 1.0 ) - cos (1.0 )) < 10e-4
12+ @test norm (Calculus. finite_difference (x -> sin (x), pi ) + 1 ) < 10e-4
1213
1314@test norm (Calculus. finite_difference (x -> exp (- x), 1.0 , :forward ) - (- exp (- 1.0 ))) < 10e-4
1415@test norm (Calculus. finite_difference (x -> exp (- x), 1.0 , :central ) - (- exp (- 1.0 ))) < 10e-4
2122@test norm (Calculus. finite_difference (x -> x[1 ]^ 2 , [1.0 ], :forward ) - [2.0 ]) < 10e-4
2223@test norm (Calculus. finite_difference (x -> x[1 ]^ 2 , [1.0 ], :central ) - [2.0 ]) < 10e-4
2324@test norm (Calculus. finite_difference (x -> x[1 ]^ 2 , [1.0 ]) - [2.0 ]) < 10e-4
25+ @test norm (Calculus. finite_difference (x -> x[1 ]^ 2 , [float (pi )]) - [2 * pi ])) < 10e-4
2426
2527@test norm (Calculus. finite_difference (x -> sin (x[1 ]), [1.0 ], :forward ) - [cos (1.0 )]) < 10e-4
2628@test norm (Calculus. finite_difference (x -> sin (x[1 ]), [1.0 ], :central ) - [cos (1.0 )]) < 10e-4
You can’t perform that action at this time.
0 commit comments