kmath/kmath-complex/space.kscience.kmath.complex/-complex/index.html

353 lines
53 KiB
HTML
Raw Normal View History

<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
<title>Complex</title>
</head><body><link href="../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../../";</script>
<script type="text/javascript" src="../../../scripts/sourceset_dependencies.js" async></script><link href="../../../styles/style.css" rel="Stylesheet"><link href="../../../styles/jetbrains-mono.css" rel="Stylesheet"><link href="../../../styles/main.css" rel="Stylesheet"><link href="../../../styles/prism.css" rel="Stylesheet"><link href="../../../styles/logo-styles.css" rel="Stylesheet"><script type="text/javascript" src="../../../scripts/clipboard.js" async></script><script type="text/javascript" src="../../../scripts/navigation-loader.js" async></script><script type="text/javascript" src="../../../scripts/platform-content-handler.js" async></script><script type="text/javascript" src="../../../scripts/main.js" defer></script><script type="text/javascript" src="../../../scripts/prism.js" async></script><script>const storage = localStorage.getItem("dokka-dark-mode")
const savedDarkMode = storage ? JSON.parse(storage) : false
if(savedDarkMode === true){
document.getElementsByTagName("html")[0].classList.add("theme-dark")
}</script>
<div class="navigation-wrapper" id="navigation-wrapper">
<div id="leftToggler"><span class="icon-toggler"></span></div>
<div class="library-name"><a href="../../../index.html"><span>kmath</span></a></div>
<div></div>
<div class="pull-right d-flex"><button id="theme-toggle-button"><span id="theme-toggle"></span></button>
<div id="searchBar"></div>
</div>
</div>
<div id="container">
<div id="leftColumn">
<div id="sideMenu"></div>
</div>
<div id="main">
<div class="main-content" id="content" pageids="kmath-complex::space.kscience.kmath.complex/Complex///PointingToDeclaration//-1704498033">
<div class="breadcrumbs"><a href="../../index.html">kmath-complex</a>/<a href="../index.html">space.kscience.kmath.complex</a>/<a href="index.html">Complex</a></div>
<div class="cover ">
<h1 class="cover"><span><span>Complex</span></span></h1>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-complex:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">data </span><span class="token keyword">class </span><a href="index.html">Complex</a><span class="token punctuation">(</span>re<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a><span class="token punctuation">, </span>im<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a><span class="token punctuation">)</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><p class="paragraph">Represents <code class="lang-kotlin">double</code>-based complex number.</p></div></div>
</div>
<div class="tabbedcontent">
<div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="Types">Types</button><button class="section-tab" data-togglable="Constructors">Constructors</button><button class="section-tab" data-togglable="Functions">Functions</button><button class="section-tab" data-togglable="Properties">Properties</button><button class="section-tab" data-togglable="Extensions">Extensions</button><button class="section-tab" data-togglable="Sources">Sources</button></div>
<div class="tabs-section-body">
<h2 class="tabbedcontent">Constructors</h2>
<div class="table" data-togglable="Constructors"><a data-name="1338895270%2FConstructors%2F-1704498033" anchor-label="Complex" id="1338895270%2FConstructors%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-complex:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue TabbedContent">
<div class=""><span class="inline-flex">
<div><a href="-complex.html"><span><span>Complex</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1338895270%2FConstructors%2F-1704498033"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-complex:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">fun </span><a href="-complex.html"><span class="token function">Complex</span></a><span class="token punctuation">(</span>re<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-number/index.html">Number</a><span class="token punctuation">, </span>im<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-number/index.html">Number</a><span class="token punctuation">)</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="-2011145031%2FConstructors%2F-1704498033" anchor-label="Complex" id="-2011145031%2FConstructors%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-complex:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue TabbedContent">
<div class=""><span class="inline-flex">
<div><a href="-complex.html"><span><span>Complex</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-2011145031%2FConstructors%2F-1704498033"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-complex:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">fun </span><a href="-complex.html"><span class="token function">Complex</span></a><span class="token punctuation">(</span>re<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-number/index.html">Number</a><span class="token punctuation">)</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="2071447190%2FConstructors%2F-1704498033" anchor-label="Complex" id="2071447190%2FConstructors%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-complex:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue TabbedContent">
<div class=""><span class="inline-flex">
<div><a href="-complex.html"><span><span>Complex</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="2071447190%2FConstructors%2F-1704498033"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-complex:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">fun </span><a href="-complex.html"><span class="token function">Complex</span></a><span class="token punctuation">(</span>re<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a><span class="token punctuation">, </span>im<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a><span class="token punctuation">)</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
</div>
<h2 class="">Types</h2>
<div class="table" data-togglable="Types"><a data-name="-1584812214%2FClasslikes%2F-1704498033" anchor-label="Companion" id="-1584812214%2FClasslikes%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-complex:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="-companion/index.html"><span><span>Companion</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1584812214%2FClasslikes%2F-1704498033"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-complex:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">object </span><a href="-companion/index.html">Companion</a> : <a href="../../../kmath-memory/space.kscience.kmath.memory/-memory-spec/index.html">MemorySpec</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="index.html">Complex</a><span class="token operator">&gt; </span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
</div>
<h2 class="">Functions</h2>
<div class="table" data-togglable="Functions"><a data-name="1418201035%2FFunctions%2F-1704498033" anchor-label="toString" id="1418201035%2FFunctions%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-complex:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="to-string.html"><span>to</span><wbr><span><span>String</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1418201035%2FFunctions%2F-1704498033"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-complex:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">override </span><span class="token keyword">fun </span><a href="to-string.html"><span class="token function">toString</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
</div>
<h2 class="">Properties</h2>
<div class="table" data-togglable="Properties"><a data-name="1344081811%2FProperties%2F-1704498033" anchor-label="im" id="1344081811%2FProperties%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-complex:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="im.html">im</a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1344081811%2FProperties%2F-1704498033"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-complex:dokkaHtmlPartial/commonMain"><a data-name="1344081811%2FProperties%2F-1704498033" anchor-label="im" id="1344081811%2FProperties%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">val </span><a href="im.html">im</a><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><a data-name="1344081811%2FProperties%2F-1704498033" anchor-label="im" id="1344081811%2FProperties%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a><p class="paragraph">The imaginary part.</p></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="1160514916%2FProperties%2F-1704498033" anchor-label="re" id="1160514916%2FProperties%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-complex:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="re.html">re</a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1160514916%2FProperties%2F-1704498033"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted" data-togglable="Properties"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-complex:dokkaHtmlPartial/commonMain"><a data-name="1160514916%2FProperties%2F-1704498033" anchor-label="re" id="1160514916%2FProperties%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">val </span><a href="re.html">re</a><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><a data-name="1160514916%2FProperties%2F-1704498033" anchor-label="re" id="1160514916%2FProperties%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a><p class="paragraph">The real part.</p></div></div></div>
</div>
</div>
</div>
</div>
</div>
<h2 class="tabbedcontent">Extensions</h2>
<div class="table" data-togglable="Extensions"><a data-name="-2074554569%2FExtensions%2F-1704498033" anchor-label="conjugate" id="-2074554569%2FExtensions%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-complex:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="../conjugate.html"><span><span>conjugate</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-2074554569%2FExtensions%2F-1704498033"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-complex:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">val </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="../conjugate.html">conjugate</a><span class="token operator">: </span><a href="index.html">Complex</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">This complex's conjugate.</p></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="1018927773%2FExtensions%2F-1704498033" anchor-label="div" id="1018927773%2FExtensions%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-complex:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="../-complex-field/div.html"><span><span>div</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1018927773%2FExtensions%2F-1704498033"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-complex:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">operator override </span><span class="token keyword">fun </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="../-complex-field/div.html"><span class="token function">div</span></a><span class="token punctuation">(</span>k<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-number/index.html">Number</a><span class="token punctuation">)</span><span class="token operator">: </span><a href="index.html">Complex</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">operator </span><span class="token keyword">fun </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="../-complex-field-n-d/index.html#-239301461%2FFunctions%2F-1704498033"><span class="token function">div</span></a><span class="token punctuation">(</span>arg<span class="token operator">: </span><a href="../../../kmath-core/space.kscience.kmath.nd/-structure-n-d/index.html">StructureND</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="index.html">Complex</a><span class="token operator">&gt;</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../../../kmath-core/space.kscience.kmath.nd/-structure-n-d/index.html">StructureND</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="index.html">Complex</a><span class="token operator">&gt;</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">operator </span><span class="token keyword">fun </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="index.html#1444014216%2FExtensions%2F-1704498033"><span class="token function">div</span></a><span class="token punctuation">(</span>arg<span class="token operator">: </span><a href="index.html">Complex</a><span class="token punctuation">)</span><span class="token operator">: </span><a href="index.html">Complex</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="145445472%2FExtensions%2F-1704498033" anchor-label="minus" id="145445472%2FExtensions%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-complex:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="../-complex-field/minus.html"><span><span>minus</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="145445472%2FExtensions%2F-1704498033"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-complex:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">operator </span><span class="token keyword">fun </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="../-complex-field/minus.html"><span class="token function">minus</span></a><span class="token punctuation">(</span>d<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a><span class="token punctuation">)</span><span class="token operator">: </span><a href="index.html">Complex</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Subtracts real number from complex one.</p></div><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">operator </span><span class="token keyword">fun </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="index.html#-620110642%2FExtensions%2F-1704498033"><span class="token function">minus</span></a><span class="token punctuation">(</span>arg<span class="token operator">: </span><a href="index.html">Complex</a><span class="token punctuation">)</span><span class="token operator">: </span><a href="index.html">Complex</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">operator </span><span class="token keyword">fun </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="index.html#-33998970%2FExtensions%2F-1704498033"><span class="token function">minus</span></a><span class="token punctuation">(</span>other<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-number/index.html">Number</a><span class="token punctuation">)</span><span class="token operator">: </span><a href="index.html">Complex</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">operator </span><span class="token keyword">fun </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="../-complex-field-n-d/index.html#67409509%2FFunctions%2F-1704498033"><span class="token function">minus</span></a><span class="token punctuation">(</span>arg<span class="token operator">: </span><a href="../../../kmath-core/space.kscience.kmath.nd/-structure-n-d/index.html">StructureND</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="index.html">Complex</a><span class="token operator">&gt;</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../../../kmath-core/space.kscience.kmath.nd/-structure-n-d/index.html">StructureND</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="index.html">Complex</a><span class="token operator">&gt;</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="-1523767704%2FExtensions%2F-1704498033" anchor-label="plus" id="-1523767704%2FExtensions%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-complex:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="../-complex-field/plus.html"><span><span>plus</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1523767704%2FExtensions%2F-1704498033"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-complex:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">operator </span><span class="token keyword">fun </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="../-complex-field/plus.html"><span class="token function">plus</span></a><span class="token punctuation">(</span>d<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a><span class="token punctuation">)</span><span class="token operator">: </span><a href="index.html">Complex</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Adds real number to complex one.</p></div><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">operator </span><span class="token keyword">fun </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="index.html#1737361986%2FExtensions%2F-1704498033"><span class="token function">plus</span></a><span class="token punctuation">(</span>arg<span class="token operator">: </span><a href="index.html">Complex</a><span class="token punctuation">)</span><span class="token operator">: </span><a href="index.html">Complex</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">operator </span><span class="token keyword">fun </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="index.html#1476891246%2FExtensions%2F-1704498033"><span class="token function">plus</span></a><span class="token punctuation">(</span>other<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-number/index.html">Number</a><span class="token punctuation">)</span><span class="token operator">: </span><a href="index.html">Complex</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">operator </span><span class="token keyword">fun </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="../-complex-field-n-d/index.html#-1053752423%2FFunctions%2F-1704498033"><span class="token function">plus</span></a><span class="token punctuation">(</span>arg<span class="token operator">: </span><a href="../../../kmath-core/space.kscience.kmath.nd/-structure-n-d/index.html">StructureND</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="index.html">Complex</a><span class="token operator">&gt;</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../../../kmath-core/space.kscience.kmath.nd/-structure-n-d/index.html">StructureND</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="index.html">Complex</a><span class="token operator">&gt;</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="475929988%2FExtensions%2F-1704498033" anchor-label="pow" id="475929988%2FExtensions%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-complex:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="index.html#475929988%2FExtensions%2F-1704498033"><span><span>pow</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="475929988%2FExtensions%2F-1704498033"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-complex:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">infix </span><span class="token keyword">fun </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="index.html#475929988%2FExtensions%2F-1704498033"><span class="token function">pow</span></a><span class="token punctuation">(</span>pow<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-number/index.html">Number</a><span class="token punctuation">)</span><span class="token operator">: </span><a href="index.html">Complex</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="252819869%2FExtensions%2F-1704498033" anchor-label="r" id="252819869%2FExtensions%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-complex:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="../r.html"><span><span>r</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="252819869%2FExtensions%2F-1704498033"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-complex:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">val </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="../r.html">r</a><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Absolute value of complex number.</p></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="-1843071195%2FExtensions%2F-1704498033" anchor-label="reciprocal" id="-1843071195%2FExtensions%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-complex:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="../reciprocal.html"><span><span>reciprocal</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1843071195%2FExtensions%2F-1704498033"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-complex:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">val </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="../reciprocal.html">reciprocal</a><span class="token operator">: </span><a href="index.html">Complex</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">This complex's reciprocal.</p></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="1449262833%2FExtensions%2F-1704498033" anchor-label="theta" id="1449262833%2FExtensions%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-complex:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="../theta.html"><span><span>theta</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1449262833%2FExtensions%2F-1704498033"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-complex:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">val </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="../theta.html">theta</a><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">An angle between vector represented by complex number and X axis.</p></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="737127752%2FExtensions%2F-1704498033" anchor-label="times" id="737127752%2FExtensions%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-complex:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="index.html#1230105535%2FExtensions%2F-1704498033"><span><span>times</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="737127752%2FExtensions%2F-1704498033"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-complex:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">operator </span><span class="token keyword">fun </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="index.html#1230105535%2FExtensions%2F-1704498033"><span class="token function">times</span></a><span class="token punctuation">(</span>arg<span class="token operator">: </span><a href="index.html">Complex</a><span class="token punctuation">)</span><span class="token operator">: </span><a href="index.html">Complex</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">operator </span><span class="token keyword">fun </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="index.html#672444215%2FExtensions%2F-1704498033"><span class="token function">times</span></a><span class="token punctuation">(</span>k<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-number/index.html">Number</a><span class="token punctuation">)</span><span class="token operator">: </span><a href="index.html">Complex</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">operator </span><span class="token keyword">fun </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="../-complex-field-n-d/index.html#-1145744600%2FFunctions%2F-1704498033"><span class="token function">times</span></a><span class="token punctuation">(</span>arg<span class="token operator">: </span><a href="../../../kmath-core/space.kscience.kmath.nd/-structure-n-d/index.html">StructureND</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="index.html">Complex</a><span class="token operator">&gt;</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../../../kmath-core/space.kscience.kmath.nd/-structure-n-d/index.html">StructureND</a><span class="token operator">&lt;</span><span class="token keyword"></span><a href="index.html">Complex</a><span class="token operator">&gt;</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="-1248019802%2FExtensions%2F-1704498033" anchor-label="toQuaternion" id="-1248019802%2FExtensions%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-complex:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="../to-quaternion.html"><span>to</span><wbr><span><span>Quaternion</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1248019802%2FExtensions%2F-1704498033"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-complex:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">fun </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="../to-quaternion.html"><span class="token function">toQuaternion</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../-quaternion/index.html">Quaternion</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="brief "><p class="paragraph">Creates a quaternion with <code class="lang-kotlin">w</code>-component equal to <code class="lang-kotlin">re</code>-component of given complex and <code class="lang-kotlin">x</code>-component equal to <code class="lang-kotlin">im</code>-component of given complex.</p></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="-1916964120%2FExtensions%2F-1704498033" anchor-label="unaryMinus" id="-1916964120%2FExtensions%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-complex:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="../-complex-field/unary-minus.html"><span>unary</span><wbr><span><span>Minus</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1916964120%2FExtensions%2F-1704498033"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-complex:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">operator override </span><span class="token keyword">fun </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="../-complex-field/unary-minus.html"><span class="token function">unaryMinus</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="index.html">Complex</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
<a data-name="92668767%2FExtensions%2F-1704498033" anchor-label="unaryPlus" id="92668767%2FExtensions%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-complex:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="index.html#92668767%2FExtensions%2F-1704498033"><span>unary</span><wbr><span><span>Plus</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="92668767%2FExtensions%2F-1704498033"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="title">
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-complex:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">operator </span><span class="token keyword">fun </span><a href="index.html">Complex</a><span class="token punctuation">.</span><a href="index.html#92668767%2FExtensions%2F-1704498033"><span class="token function">unaryPlus</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="index.html">Complex</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
</div>
<h2 class="">Sources</h2>
<div class="table" data-togglable="Sources"><a data-name="-552440632%2FSource%2F-1704498033" anchor-label="https://github.com/mipt-npm/kmath/tree/master/kmath-complex/src/commonMain/kotlin/space/kscience/kmath/complex/Complex.kt#L190" id="-552440632%2FSource%2F-1704498033" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-complex:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-complex:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex">
<div><a href="https://github.com/mipt-npm/kmath/tree/master/kmath-complex/src/commonMain/kotlin/space/kscience/kmath/complex/Complex.kt#L190">common source</a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-552440632%2FSource%2F-1704498033"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer"><span class="go-to-top-icon"><a href="#content" id="go-to-top-link"></a></span><span>© 2022 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span></div>
</div>
</div>
</body></html>