Programowanie w systemie UNIX/MPC: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
m →‎aptitude: sudo apt-get install libmpc-dev
m →‎asin(2i): wersja
Linia 313:
}
</source>
 
===wersja===
 
 
<syntaxhighlight lang="c">
 
 
/*
 
gcc m.c -lmpc -mpfr -lgmp -Wall
 
*/
#include <stdio.h>
#include <gmp.h>
#include <mpfr.h>
#include "mpc.h"
 
int main() {
mpfr_printf(" MPC-%s \nMPFR-%s \n GMP-%s \n", MPC_VERSION_STRING, mpfr_version, gmp_version );
return 0;
}
</syntaxhighlight>
 
 
Przykładowy wynik
 
<pre>
 
MPC-1.1.0
MPFR-4.0.2
GMP-6.2.0
 
</pre>
 
 
===asin(2i)===
Linia 368 ⟶ 403:
asin(0 2.00000000000000000000000000000000000000) = (0 1.44363547517881034249327674027310526938)
inex = 0 -1
 
 
===mpc_set_str===