C/acos: Różnice pomiędzy wersjami
Usunięta treść Dodana treść
Połączony opis funkcji trygonometrycznych i hiperbolicznych; Dokładniejszy opis i przykład |
→Przykład użycia: poprawki |
||
Linia 94:
=== Przykład użycia ===
<source lang="c">
{ double A, omega, t, x, V, a;
printf("A = ");
if (scanf("%lf", &A) != 1) return 1;
printf("omega = ");
if (scanf("%lf", &omega) != 1) return 1;
printf("t = ");
if (scanf("%lf", &t) != 1) return 1;
x = A * sin(omega * t);
V = A * omega * cos(omega * t);
a = - omega * omega * x;
printf("x = %f\nV = %f\na = %f\n", x, V, a);
return 0;
</source>
=== Uwagi ===
|