Ch Standard Demos
ISO C90 Standard
Wide characters
ISO C99 Standard
C++ features
Complex IEEE floating-point arithmetic
Assumed-shape arrays
Nested functions
Interactive C statement execution
Interactive command shell
Shell Programming
Safe Ch
Ch applets
String Type
Adjustable array bounds
Auto array bound checking
Socket/Winsock
POSIX
Unix utilities for Windows
Windows
GTK+
X/Motif
OpenGL
Toolkits Demos
CGI
ODBC
ChExcel
Ch Professional Demos
Computational array
Plotting
Numerical analysis
C LAPACK functions
Ch is the only computing environment in existence that can perform numerical computing with consistent numerical results under the IEEE floating-point arithmetic in the entire real domain and complex domain using an extended complex plane for a Riemman sphere. Two complex metanumbers ComplexInf for complex infinity and ComplexNaN for complex-not-a-number are introduced. #include <stdio.h> #include <complex.h> int main() { double complex z; z = 1/0.0; printf("z = %f\n", z); z = sqrt(ComplexInf); printf("z = %f\n", z); z = exp(ComplexInf); printf("z = %f\n", z); return 0; }
The output is:

z = ComplexInf
z = ComplexInf
z = ComplexNaN