Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Math Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

rootsOfOne()


Does not inherit

Local Index

No Entries

Summary

Prototypes Header File(s)

RWMathVec<DComplex>

rootsOfOne(int N, unsigned nterms)

<rw/math/mathvec.h>

RWMathVec<DComplex>

rootsOfOne(int N)

<rw/math/mathvec.h>

Description

Returns a complex vector v containing the complex Nth roots of unity, that is:

If rootsOfOne() is invoked with argument (N), the N roots are returned in a vector of type RWMathVec<DComplex> with N elements. If rootsOfOne() is invoked with arguments (N, nterms), only the first nterms roots are returned.



Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.