blob: 3aeee5fcb5d874f9bd392eb62191e638ae586de3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// <-- Non-regression test for bug 2284 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=2284
//
// <-- Short Description -->
// Numerical error when carrying out a particular calculation using the
// complex exp function. E.g.
//
// -->20 * exp(%i * 2 * %pi / 3)
// ans =
//
// -11. + 17.320508i
//
// This is the wrong result!!
// Copyright INRIA
// Scilab Project - S. Steer
// Copyright INRIA
// Date : 17 Janv 2007
s1=-9.999999999;
s2=0.999999999999;
print(TMPDIR+'/bug2284',s1,s2)
txt=mgetl(TMPDIR+'/bug2284')
r=and(txt== [" s2 =";" ";" 1. ";" s1 =";" ";" -10. "])
mdelete(TMPDIR+'/bug2284')
affich_result(r,2284);
|