Here you can find the source of sin(double... v)
public static double[] sin(double... v)
//package com.java2s; //License from project: Open Source License public class Main { public static double[] sin(double... v) { double[] r = new double[v.length]; for (int i = 0; i < v.length; i++) r[i] = Math.sin(v[i]); return r; }//ww w . j ava 2 s .c om }