Programowanie w systemie UNIX/arbcmath

Z Wikibooks, biblioteki wolnych podręczników.

instalacja[edytuj]

 git clone git@github.com:fredrik-johansson/arbcmath.git

przykład[edytuj]

/*


export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/
gcc a.c -larb -lflint -lgmp -lmpfr  -lpthread -Wall
./a.out


*/

#include "acb.h"

int main()
{
    double complex z;

     
 
    z = ac_sqrt(I);

    printf("%.15g + %.15g*I\n", creal(z), cimag(z));

    
}