sin |
Sinus |
---|---|
Java | java.lang |
Math |
Syntaxe
static double sin(double a); |
Paramètres
Nom | Description |
---|---|
a | Ce paramètre permet d'indiquer l'expression contenant le nombre à traiter. |
Description
Cette méthode trigonométrique retourne le «Sinus».
Algorithme
MODULE SIN(X) R ← X x X S ← 42.0 BOUCLE POUR I ← 10 JUSQU'A 1 S ← 4.0 x I - 2.0 + (-R) / S FIN BOUCLE POUR RETOURNE 2.0 x X x S / (R + S x S) |
Exemple
Voici un exemple permet d'afficher les Sinus inférieurs à π :
on obtiendra le résultat suivant :
Sin(0.0)=0.0Sin(0.1)=0.09983341664682815
Sin(0.2)=0.19866933079506122
Sin(0.30000000000000004)=0.2955202066613396
Sin(0.4)=0.3894183423086505
Sin(0.5)=0.479425538604203
Sin(0.6)=0.5646424733950354
Sin(0.7)=0.644217687237691
Sin(0.7999999999999999)=0.7173560908995227
Sin(0.8999999999999999)=0.7833269096274833
Sin(0.9999999999999999)=0.8414709848078964
Sin(1.0999999999999999)=0.8912073600614353
Sin(1.2)=0.9320390859672263
Sin(1.3)=0.963558185417193
Sin(1.4000000000000001)=0.9854497299884603
Sin(1.5000000000000002)=0.9974949866040544
Sin(1.6000000000000003)=0.9995736030415051
Sin(1.7000000000000004)=0.9916648104524686
Sin(1.8000000000000005)=0.973847630878195
Sin(1.9000000000000006)=0.9463000876874144
Sin(2.0000000000000004)=0.9092974268256815
Sin(2.1000000000000005)=0.8632093666488735
Sin(2.2000000000000006)=0.8084964038195899
Sin(2.3000000000000007)=0.7457052121767197
Sin(2.400000000000001)=0.6754631805511504
Sin(2.500000000000001)=0.5984721441039558
Sin(2.600000000000001)=0.5155013718214634
Sin(2.700000000000001)=0.42737988023382895
Sin(2.800000000000001)=0.33498815015590383
Sin(2.9000000000000012)=0.23924932921398112
Sin(3.0000000000000013)=0.1411200080598659
Sin(3.1000000000000014)=0.04158066243328916
Dernière mise à jour : Dimanche, le 21 juin 2015