File: complex.mpt

package info (click to toggle)
mathpiper 0.81f%2Bsvn4469%2Bdfsg3-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 36,552 kB
  • ctags: 8,348
  • sloc: java: 57,479; lisp: 13,721; objc: 1,300; xml: 988; makefile: 114; awk: 95; sh: 38
file content (23 lines) | stat: -rw-r--r-- 592 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Verify( Limit(z,2*I) (I*z^4+3*z^2-10*I), Complex(-12,6) );
KnownFailure( (Limit(n,Infinity) (n^2*I^n)/(n^3+1)) = 0 );
Verify( Limit(n,Infinity) n*I^n, Undefined );

Verify(1/I, -I);
Verify(I^2, -1);
Verify(2/(1+I), 1-I);
Verify(I^3, -I);
Verify(I^4, 1);
Verify(I^5, I);
Verify(1^I, 1);
Verify(0^I, Undefined);
Verify(I^(-I), Exp(Pi/2));
Verify((1+I)^33, 65536+I*65536);
Verify((1+I)^(-33), (1-I)/131072);
Verify(Exp(I*Pi), -1);
TestMathPiper((a+b*I)*(c+d*I), (a*c-b*d)+I*(a*d+b*c));
Verify(Ln(-1), I*Pi);
Verify(Ln(3+4*I), Ln(5)+I*ArcTan(4/3));

Verify(Re(2*I-4), -4);
Verify(Im(2*I-4), 2);