Skip to main content

Questions tagged [complex]

Questions about using complex numbers in Mathematica. This includes basic arithmetic, functions of complex numbers, plotting complex functions, and dealing with branch cuts.

Filter by
Sorted by
Tagged with
2 votes
2 answers
133 views

Series expansion of a given function

I attempt to do the series expansion for the following function ...
Vayne's user avatar
  • 101
1 vote
1 answer
52 views

Why does RegionPlot handle Euler's identity differently for functions and direct expressions?

Edit When I change the x range (e.g. {x,1,3}) I get the same error also for the direct expression. Thus, the problem exists either way and I assume it just evaluated different points? Problem I want ...
Jannik Wyss's user avatar
2 votes
0 answers
41 views

How to generate lattice by integrating over curves on a modular form domain plot?

I was watching this video (2:30 of https://youtu.be/zLEyIT_BCgk?si=ji5NyjR7vcwzaNxi ). Here in the video he said that to get the lattice , we just integrate over the curve(silver line) and we will ...
Kazi Abu Rousan's user avatar
0 votes
2 answers
72 views

Integrate gives inconsistent result for gamma-like integral with complex variables

I am trying to come up with a generic formula for the below integral, which is analogous to the upper incomplete gamma function, ...
ThomasJr's user avatar
2 votes
0 answers
52 views

Drawing cycles around and across cuts

I want to draw cycles (or paths) around and across the cuts on the complex plane for the following function (where I have put the cuts between [z1,z2] and ...
Physics Moron's user avatar
2 votes
2 answers
119 views

How can I find minimal modulus of $z^2 - w z - 4$?

Let $z$ and $w$ be two complex numbers satisfying conditions: $|z| = 2$ and $|w i - 2 + 5i| = 1.$ How can I find the minimum of $|z^2 - w z - 4|$? I tried with setting $z = a + b i$ and $w = x + y i$: ...
minhthien_2016's user avatar
0 votes
0 answers
54 views

Mathematica crashes when trying to use NIntegrate on a complex function

I am trying to integrate the real part of a specific entry in a Green function given by G[E_] := Re[Inverse[E iF - H + I L/2]][[13, 13]]; ...
flg's user avatar
  • 21
1 vote
2 answers
116 views

Contour integral with radius infinite [closed]

How can I get compute a contour integral of the function $f(z)=\exp(i z)/z$ in the upper circle with center in $(0,0)$ and radius $R$? I want verify that $\lim_{R\to \infty}\int_C f(x)=0$ in ...
eraldcoil's user avatar
  • 203
2 votes
1 answer
117 views

Is it possible to express $\text{Li}_2(-\frac18(-i+\sqrt{15})+\text{Li}_2(\frac18 (i+\sqrt{15})$ as an explicit real expression (not numeric)? [closed]

I obtain this expression in my calculations, and numerically I am sure that it is a real number. ...
MsMath's user avatar
  • 195
1 vote
0 answers
71 views

How can I ask Mathematica to give the explicit real form of the given function?

In part of my calculations, I obtain this expression which contains the imaginary unit I but I expect that this expression might be real (from the comments below, ...
MsMath's user avatar
  • 195
1 vote
1 answer
75 views

ParametricNDSolveValue, NMaximize: Dealing with complex results in maximization problem

I analyze a system of differential equations in several variables including mus[t], mui[t], and w[t]. Time runs from t=0 to t=T. The two initial values mus[0] and mui[0] can freely be chosen; their ...
beginners's user avatar
2 votes
1 answer
42 views

How to check if there exist variables for which a function may be real?

I have a tough time in checking whether there exist any values of x and y (both real) for which the following pair of functions ...
Jee's user avatar
  • 386
4 votes
1 answer
88 views

MatrixExp sometimes erroneously assumes variables are real

Consider the simple expression MatrixExp[I Conjugate[x] {{1,0},{0,1}}] which Mathematica correctly evaluates to ...
Anti Earth's user avatar
  • 1,211
4 votes
2 answers
210 views

What to do when FullSimplify runs out of memory?

So close yet so far! I've read a number of posts here about tips and strategies for simplifying expressions. I hope this case still offers guidance to others. I have an expression that (just!) fits ...
RealDisinformation's user avatar
8 votes
3 answers
532 views

Basins of attraction using Newton-Raphson method for nonlinear system

I am trying to construct basins of attraction using the newton's method for the system of two equations whose roots are real. I need to develop a code to get basin of attraction. Unfortunately, my ...
onk's user avatar
  • 119
4 votes
1 answer
61 views

Plot freezes with arbitrary precision complex evaluations

I find that Plot has some strange behavior. a = {{-5.355`3 I, 0.1589`3 }, {2.305`3, 0.01425`3}}; Det[a] // Abs gives ...
Ming's user avatar
  • 91
0 votes
1 answer
105 views

ExpToTrig conversion problem

Let we have some ODE solution: formExp = c1 E^(-I t) + c2 E^(I t) +c3 E^(-2 I t) + c4 E^(2 I t) It is known that this solution can be reduced to the form: ...
lesobrod's user avatar
  • 1,729
0 votes
1 answer
71 views

Conformal Mapping Function and Scaling Factor

I am having problems determining a scaling factor for a conformal mapping function. The plan is to map the upper half plane into a rectangle (Schwarz Christoffel Transformation) to determine the ...
tommowic's user avatar
0 votes
0 answers
76 views

Initial conditions making trouble with NDSolve

I want to solve a number of differential equations in a single NDSolve. The code is as follows: ...
Julian Yussef's user avatar
3 votes
1 answer
69 views

How can I improve the accuracy of FindRoot for a complex equation?

I want to solve the following problem: Given a complex matrix $m=\textbf{m}(λ, ω)$, with $λ, ω \in \mathbb R$, find $λ$ and $ω$ such that $$\det[\textbf{m} (λ, ω)] = 0$$ Since one can take the real ...
fritess's user avatar
  • 33
1 vote
1 answer
98 views

Unable to simplify complex expression [closed]

I am very new to Mathematica. Somehow Mathematica doesn't give me the norm expression, instead, it just gives the original expression. How should I fix this? The code is: ...
Zhanning Liu's user avatar
2 votes
1 answer
107 views

Find the Intersection Point of Two Complex Functions Using Complex3DPlot

I want to find the intersection point using ComplexPlot3D. I have a function call it $f(\lambda,k)$ ($k$ is fixed) such that at two particular values of $\lambda_{1,...
ZHENGYAO HUANG's user avatar
1 vote
0 answers
53 views

How does mathematica handle roots of complex numbers

When Mathematica takes $(-1)^{\frac{3}{4}}$, is it really interpreting it as $((-1)^3)^{\frac{1}{4}}$, or $((-1)^{\frac{1}{4}})^3$? These seem like they would give $e^{i \frac{3\pi}{4}}$ versus $\...
ions me's user avatar
  • 991
2 votes
2 answers
159 views

Sqrt returns complex values

I am trying to find sine from a cosine relation using the following commands: ...
PKD's user avatar
  • 31
1 vote
1 answer
238 views

Differential complex equations in cosmological problem

I want to solve a differential equation of second order with complex initial conditions. Despite I have wrote all the code with detail, I am still facing some problems I might want to review here. The ...
Julian Yussef's user avatar
2 votes
1 answer
439 views

How to verify that a certain point is a branch point for a complex function using Mathematica?

It is straightforward to verify that z=0 is a branch point for w[z]=Sqrt[z]: ...
lotus2019's user avatar
  • 2,141
0 votes
0 answers
44 views

Scope of Simplifying Complex Expressions [duplicate]

Do you know what the scope of Mathematica's simplification capabilities for complex expressions is? For example, I put the heavy lifting of proving a complex inequality on Mathematica, using the ...
Matthias's user avatar
  • 353
2 votes
2 answers
86 views

Vector in the complex plane

Please tell me how I can make an animation with rotating vectors rather than rotating points. ...
Vladimir's user avatar
  • 323
0 votes
2 answers
139 views

How to numerically find complex non-real roots of a function?

Using Mathematica, how can we numerically find only complexes, but not real roots, of a function? For example, if we have f:C->C, and we have roots like, R1,R2,...,Rn (real roots, without imaginary ...
GarouDan's user avatar
  • 1,536
28 votes
2 answers
1k views

Make a "formula-millipede" move along arbitrary path

Math artist Chirag Dudhat specializes in simple math that does something interesting visually. He recently had a hit with a "millipede" simulation with simple complex plane formulas. Below ...
Vitaliy Kaurov's user avatar
2 votes
1 answer
72 views

FindRoot::trcx when using NDSolve

...
Josuva J's user avatar
5 votes
0 answers
141 views

What is resistivity function of a 3-bar electric switch?

I answered a question on Physics StackExchange - considered as homework - numerically. The question is: What is the resistance of three stacked identical blocks, the middle bar shifted by its half ...
Roland F's user avatar
  • 3,817
0 votes
1 answer
114 views

Riemann surface of the argument multivalued function

I tried to use Michael Trott's Mathematica Resource function RiemannSurfacePlot3D for plotting the Riemann surface of the Arg function without success. How can I plot this Riemann function with the ...
CharlesG's user avatar
  • 131
1 vote
1 answer
152 views

Using NDSolve and complex differential equations

I am trying to solve this system of equations with NDSolve ...
Julian Yussef's user avatar
4 votes
2 answers
216 views

Draw a line as a branch cut on a plot

I had asked a question here about visualization of Riemann surface and got an answer: My function is: $$g (z) = (1 - a^2/z) (1 - 1 /z),$$ where $0 < a < 1$. And the branch cut is from $a^2 \to 1$...
user avatar
3 votes
3 answers
879 views

Mathematica doesn't give the correct value of an integral

I want to calculate the following integral with Mathamtica Integrate[ E^(−2 x I) (Log[Abs[Cos[x − a]]] + Pi I/2 Sign[Cos[x − a]]), {x, 0, 2 Pi}] where $a$ is a real ...
gaoqiang's user avatar
  • 141
6 votes
2 answers
406 views

Visualizing branch cut and Riemann surface for a square root

I have the following complex function: $$g (z) = (1 - a^2/z) (1 - 1 /z),$$ where $0 < a < 1$. Calculations show that $\sqrt{g(z)}$ has a branch cut along $a^2 \to 1$. Is there a way to visualize ...
user avatar
3 votes
1 answer
111 views

Finding the cube root of negative number within a custom function

I'm trying to write a program that shows the gradients on either side of a stationary point. But for functions like x^(4/3) with stationary point at x=0, the derivative has the term x^(1/3), and (-0....
PHPuzzler's user avatar
4 votes
3 answers
257 views

How to plot this set of complex numbers?

I want to plot this set of complex numbers in Mathematica: $$ D := \left\{\frac{1}{z}: z \in \mathbb{C}, \text{Im}(z) \ge 1, \text{Re}(z) \le \text{Im}(z), |z-1-i| \le 1\right\} $$
Tim's user avatar
  • 43
1 vote
2 answers
103 views

How to plot the imaginary part of $\tan(x)^{\cos(x)}$ on the $xy$-plane?

So recently, I asked this question on Math.SE on if my thought process on how to solve the limit $\lim_{x\to(\pi/2)^-}\tan(x)^{\cos(x)}$ was correct, and actually, while I was solving this, I was ...
CrSb0001's user avatar
  • 233
0 votes
1 answer
67 views

Trouble with Finding a Supremum Constrained by a Condition

I have a function $$ f(x,y) = \sqrt{\left(x^4 y+\frac{2 x^2 y^2}{x^2 y^2+1}+\frac{2}{x^2 y^2+1}-41 x^2 y-7 x^2\right)^2+\left(-7 x^3 y-x^3-\frac{2 x y}{x^2 y^2+1}-\frac{2 x^3 y^3}{x^2 y^2+1}+41 x\...
Martin Strmiska's user avatar
2 votes
0 answers
97 views

Workarounds for unevaluated results of ContourIntegrate of non-analytic functions

There is a new useful command ContourIntegrate since 13.3. I find that the command is well-done, but even the Sun has spots. ...
user64494's user avatar
  • 26.8k
20 votes
2 answers
2k views

How can we reproduce Eugen Jahnke's drawing of a complex function?

Eugen Jahnke (1863 - 1921) studied mathematics and physics at the Humboldt University of Berlin. He became a professor at the Berlin Mining Academy in 1905. His "Tables of Functions with ...
eldo's user avatar
  • 75.2k
3 votes
1 answer
261 views

Absolute value of a complex number [closed]

I want to calculate |xx|^2. Why can't Mathematica just calculate it? What am I supposed to do here? I just want it to actually calculate it, so that there are no imaginary numbers left. Is that so ...
Σ balls's user avatar
1 vote
3 answers
113 views

Plotting |z-2| < 1 under w = z/(z-1)

How can I plot the image of |z-2| < 1 under the transformation w = z/(z-1)? The expected result should look something like ...
internet's user avatar
  • 613
1 vote
0 answers
41 views

How to assume a function is holomorphic?

For example, for a holomorphic function $f(z)=f(x,y)$, it's well know that $\ln |f|$ is harmonic. I want to check it with mathematica with the following code: ...
gaoqiang's user avatar
  • 141
15 votes
1 answer
697 views

How can we plot Man Ray's "Shakespearean Equation" w == e^(1/z)?

1. Man Ray Man Ray (1890 - 1976) was an American artist who spent most of his career in Paris. He was a significant contributor to the Dada and Surrealist movements. Man Ray produced major works in a ...
eldo's user avatar
  • 75.2k
0 votes
0 answers
25 views

Simplify vector calculus based on component splitting

I am interested in verifying a few Vector Calculus expressions using Mathematica. These expressions are based on splitting a vector field into its transverse components (in the xy- plane) and ...
orlandini's user avatar
4 votes
2 answers
247 views

Complex region plot

How do I plot the following two sets in the complex plane: $C=\{z\in\mathbb{C}|z^4\in[0,16]\}$ and the set of solutions of equation $Re(\frac{2z+1}{z+1})>0$ Thanks in advance.
fasdgr's user avatar
  • 407
2 votes
2 answers
191 views

Real zeros of complex function

I must find the zeros of a complex function $\xi$ that depends upon two real variables $B$ and $k$. The function is obtained by evaluating the determinant of the identity matrix of dimension $2n$ ...
Dario Bercioux's user avatar

1
2 3 4 5
27