infix
A JIT-Powered FFI Library for C
Loading...
Searching...
No Matches
Ch02_ComplexNumbers.c File Reference

Cookbook Chapter 2: Working with Complex Numbers. More...

#include <complex.h>
#include <infix/infix.h>
#include <stdio.h>
Include dependency graph for Ch02_ComplexNumbers.c:

Functions

static double complex c_square (double complex z)
 
int main ()
 

Detailed Description

Cookbook Chapter 2: Working with Complex Numbers.

This example demonstrates how to call C functions that use the standard C99 _Complex types. The infix signature for a complex number is c[<base>], where <base> is the underlying floating-point type (float or double).

NOTE: This feature is not supported by the MSVC compiler. This example will be skipped on Windows when using MSVC.

Function Documentation

◆ c_square()

static double complex c_square ( double complex  z)
static

◆ main()

int main ( void  )