You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TOpenCLMtxVec Class > TOpenCLMtxVec Methods > ArcCos Method > TOpenCLMtxVec.ArcCos Method ()
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TOpenCLMtxVec.ArcCos Method ()

The inverse cosine.

Syntax
C#
Visual Basic
public TOpenCLMtxVec ArcCos();

Calculate the inverse cosine of all calling object elements in-place. Values must be between -1 and 1. The return values will be in the range [0,Math387.PI], in radians.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TOpenCLVector a; clMtxVec.CreateIt(out a); try { a.CopyCplxFromArray( new double[] {1,-0.5,0.11,0.9}); a.ArcCos(); // Computes complex inverse cosine } finally { clMtxVec.FreeIt(ref a); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!