You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TOpenCLValue Class > TOpenCLValue Methods > TOpenCLValue.SinCos Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TOpenCLValue.SinCos Method

Sine and cosine.

Syntax
C#
Visual Basic
public void SinCos(TOpenCLValue SinX, TOpenCLValue CosX);

Calculates the sine and cosine of the value stored in the calling object. FloatPrecision and TOpenCLBase.ComplexComplexproperty of SinX and CosX are adjusted automatically. 

Note Use this method if you require both sine and cosine.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TOpenCLValue a,s,v; MtxVec.CreateIt(out a, out s, out c); try { a.Copy(0); a.SinCos(s,c); // s=[0], c =[1] } finally { MtxVec.FreeIt(ref a, ref s, ref c); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!