clean up complex math tests
This commit is contained in:
@@ -127,20 +127,14 @@ test "complex.cexp32" {
|
||||
const a = Complex(f32).new(5, 3);
|
||||
const c = exp(a);
|
||||
|
||||
const re = c.re;
|
||||
const im = c.im;
|
||||
|
||||
debug.assert(math.approxEq(f32, re, -146.927917, epsilon));
|
||||
debug.assert(math.approxEq(f32, im, 20.944065, epsilon));
|
||||
debug.assert(math.approxEq(f32, c.re, -146.927917, epsilon));
|
||||
debug.assert(math.approxEq(f32, c.im, 20.944065, epsilon));
|
||||
}
|
||||
|
||||
test "complex.cexp64" {
|
||||
const a = Complex(f32).new(5, 3);
|
||||
const c = exp(a);
|
||||
|
||||
const re = c.re;
|
||||
const im = c.im;
|
||||
|
||||
debug.assert(math.approxEq(f64, re, -146.927917, epsilon));
|
||||
debug.assert(math.approxEq(f64, im, 20.944065, epsilon));
|
||||
debug.assert(math.approxEq(f64, c.re, -146.927917, epsilon));
|
||||
debug.assert(math.approxEq(f64, c.im, 20.944065, epsilon));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user