Programowanie w systemie UNIX/MPC: Różnice pomiędzy wersjami
Usunięta treść Dodana treść
→Przykłady: nowy |
|||
Linia 88:
</source>
==asin(2i)==
<source lang = c>
#include <stdio.h>
#include <mpc.h>
int main (void) {
mpc_t z;
int inex;
mpc_init2 (z, 123);
mpc_set_ui_ui (z, 0, 2, MPC_RNDNN);
inex = mpc_asin (z, z, MPC_RNDNN);
mpc_out_str (stdout, 10, 0, z, MPC_RNDNN);
printf ("\n%i %i\n", MPC_INEX_RE (inex), MPC_INEX_IM (inex));
mpc_clear (z);
}
</source>
==Źródła==
|