C/sqrt: Różnice pomiędzy wersjami
Usunięta treść Dodana treść
m →Wersje: przykłądy |
m →Przykład użycia: format |
||
Linia 17:
long double complex csqrtl (long double complex x)
=== Przykład użycia ===
====podstawowe użycie====
<source lang="c">
/*
#include<math.h> ▼
gcc s.c -lm -Wall
./a.out
sqrt(2.0000000000000000) = 1.4142135623730951
*/
#include <stdio.h> //
▲#include <math.h>
int main(){
double a = 2.0;
double s;
printf(" sqrt(%.16f) = %.16f \n", a,s);
return 0;
}
▲ c= sqrt(temp);
</source>
==== zakresy====
<source lang="c">
/*
|