Sine

From SwiftAPI

(Redirected from Perl sin)
Jump to: navigation, search

Contents

Java

J2SE 1.4.2

java.lang.Math : public static double sin(double a)

JavaScript

var x = 0;
var r = Math.sin(x);
// r == 0

Perl

perldoc

$x = 0;
$r = sin($x);
# $r == 0

PHP

php.net

float sin ( float $arg )
$x = 0;
$r = sin($x);
// $r == 0

Python

import math
x = 0
r = math.sin(x)
# r == 0.0

Ruby

Ruby-Docs.org

x = 0
r = Math.sin(x)
# r == 0.0
Personal tools