# \#complex-numbers

**URL:** https://discourse.julialang.org/tag/complex-numbers/948.md?page=2

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 3

---

## [Complex numbers on GPU](https://discourse.julialang.org/t/complex-numbers-on-gpu/12776)

<div class="topic-metadata">

**Author:** [@Malay\_Das](https://discourse.julialang.org/u/Malay_Das)\
**Replies:** 3\
**Last updated:** [August 1, 2018, 11:36pm UTC](https://discourse.julialang.org/t/complex-numbers-on-gpu/12776 "2018-08-01T23:36:41Z")

</div>

Hello, I am trying to work on complex numbers. a=\[0 1;-1 0\] @time f=eigfact(a) #takes 0.000092 seconds a=convert(Array{Complex64,2},a) @time f=eigfact(a) #takes 0.062753 seconds And then move the computation to G…

---

## [Multiplication with Complex numbers and Inf give inconsistent answers - bug?](https://discourse.julialang.org/t/multiplication-with-complex-numbers-and-inf-give-inconsistent-answers-bug/11026)

<div class="topic-metadata">

**Author:** [@jcook](https://discourse.julialang.org/u/jcook)\
**Replies:** 12\
**Last updated:** [May 21, 2018, 9:38pm UTC](https://discourse.julialang.org/t/multiplication-with-complex-numbers-and-inf-give-inconsistent-answers-bug/11026 "2018-05-21T21:38:49Z")

</div>

Dear All, I expected that this julia\> 1\*(im\*Inf) 0.0 + Inf\*im would give the same answer as this julia\> 1\*im\*Inf NaN + Inf\*im but it didn’t! Is this a bug? My version: julia\> versioninfo() Julia Version 0.6.3-pre.…

---

## [A\_mul\_B! deviates from C = A\*B with complex numbers](https://discourse.julialang.org/t/a-mul-b-deviates-from-c-a-b-with-complex-numbers/10165)

<div class="topic-metadata">

**Author:** [@Jan](https://discourse.julialang.org/u/Jan)\
**Replies:** 6\
**Last updated:** [April 5, 2018, 2:12pm UTC](https://discourse.julialang.org/t/a-mul-b-deviates-from-c-a-b-with-complex-numbers/10165 "2018-04-05T14:12:49Z")

</div>

TL;DR: LinAlg.A\_mul\_B!(result, A, α\*v) deviates from result = α\*A\*v. Hey everybody! So I am new to the game here. I was drawn to implement the code of my project in Julia because it had all the features I was looking…

---

## [DifferentialEquations.jl error when solving equations with complex variables](https://discourse.julialang.org/t/differentialequations-jl-error-when-solving-equations-with-complex-variables/7939)

<div class="topic-metadata">

**Author:** [@111](https://discourse.julialang.org/u/111)\
**Replies:** 5\
**Last updated:** [December 24, 2017, 12:03pm UTC](https://discourse.julialang.org/t/differentialequations-jl-error-when-solving-equations-with-complex-variables/7939 "2017-12-24T12:03:08Z")

</div>

I tried to solve the problem u’ = -im \* E \* u, of which the solution is like u = const \* e^(-im \* E \* t). My code is: using DifferentialEquations using Plots; pyplot() E = 200.0 function Eq(t::Float64, u::Array{Comple…

---

## [Complex Number Arrays](https://discourse.julialang.org/t/complex-number-arrays/4393)

<div class="topic-metadata">

**Author:** [@tastelessjolt](https://discourse.julialang.org/u/tastelessjolt)\
**Replies:** 2\
**Last updated:** [June 23, 2017, 5:32pm UTC](https://discourse.julialang.org/t/complex-number-arrays/4393 "2017-06-23T17:32:14Z")

</div>

I can’t seem to find the struct for a complex number representation in Julia Embedding in C API. Thank you.

---

## [Improve \`parse\` to be able to handle complex numbers](https://discourse.julialang.org/t/improve-parse-to-be-able-to-handle-complex-numbers/4095)

<div class="topic-metadata">

**Author:** [@tparker](https://discourse.julialang.org/u/tparker)\
**Replies:** 9\
**Last updated:** [June 14, 2017, 7:27pm UTC](https://discourse.julialang.org/t/improve-parse-to-be-able-to-handle-complex-numbers/4095 "2017-06-14T19:27:33Z")

</div>

As of v0.5.0, the parse command cannot directly handle string representations of complex numbers; e.g. parse("1 + 2im") returns an Expr data type. You can use eval to convert the expression to a Complex{} number, but I …

---

## [Nth root of a complex number should return N results](https://discourse.julialang.org/t/nth-root-of-a-complex-number-should-return-n-results/3961)

<div class="topic-metadata">

**Author:** [@Kaiyin\_Zhong](https://discourse.julialang.org/u/Kaiyin_Zhong)\
**Replies:** 3\
**Last updated:** [May 29, 2017, 9:41am UTC](https://discourse.julialang.org/t/nth-root-of-a-complex-number-should-return-n-results/3961 "2017-05-29T09:41:24Z")

</div>

As shown below: x = 27 \* e^π e^2im e^(2+2pi)im n = 3 Θ = pi/3 Q = 27 x = Q⋅e^(Θ⋅im) ϕ₁ = Θ/n + 2π⋅1/n ϕ₂ = Θ/n + 2π⋅2/n ϕ₃ = Θ/n + 2π⋅3/n R = Q^(1/n) y₁ = R⋅e^(ϕ₁⋅im) y₂ = R⋅e^(ϕ₂⋅im) y₃ = R⋅e^(ϕ₃⋅im) println(x) println…

[Previous page](https://discourse.julialang.org/tag/complex-numbers/948.md?match_all_tags=true&page=1&tags%5B%5D=complex-numbers)
