All Questions

Filter by
Sorted by
Tagged with
3
votes
2answers
114 views

How to use a list of indexes as a variables inside a Module?

This is a trivial function, just to show that Module does not recognize the list generated by Table. ...
0
votes
0answers
73 views

getting the coordinates

With the given function from a previous problem I was solving link, I want to create/collect the coordinate points of Min. value for 21 values of parameter a (from -7 to 7), and find a,b, and c such ...
0
votes
0answers
28 views

Plotting only a maximum value of domain

I made a table containing many lists of c and Tpop function value. Since the domain is duplicated in the table, I have an image as below when I plot it (y-axis = TPop, x-axis = c). I want to plot only ...
3
votes
1answer
86 views

Running Mathematica on a Remote Machine (using frontend and ssh)

I've been trying to run my Mathematica code on a remote machine. I'm using Windows and the remote machine is a Linux machine. I write a notebook on my local machine, convert it to a .m file, and use ...
0
votes
1answer
52 views

plotting error in 3D

What is the problem related to the following plot? Definition of geometry RR = ImplicitRegion[((Sqrt[x^2 + y^2] - 9))^2 + z^2 <= 1, {x, y, z}]; solving ...
2
votes
2answers
82 views

Farey Sequence Manipulation

so I am extremely new to Mathematica and currently doing a project that involves calculating a specific function of the Farey Fractions. That is given an interval $I: (0,\alpha)$, I want to calculate ...
4
votes
1answer
84 views

Heatmap, visualizing on negative/positive values with Cartography

I want to create a heatmap in relation with a CityMap. A example of my dataset is: ...
2
votes
0answers
36 views

Error using Standardize

I'm trying to standardize a set of data. ...
0
votes
1answer
36 views

Symbolically evaluating jump conditions of expressions across interfaces

I am dealing with a problem in electromagnetism involving problems in different regions, and there is something that I haven't been able to figure out yet. What I would like to be able to do is take ...
0
votes
1answer
93 views

Problem in getting correct plot to the numerical solution of a non-linear differential equation in Mathematica

I have a system of equations to be solved numerically- $$ v'(x) = F_1(v,w,x,\lambda_2,P) \\ w'(x) = F_2(v,w,x,\lambda_2,P) \\ \lambda_2'(x) = \frac{v}{x} $$ The boundary conditions of the problem are- ...
7
votes
4answers
226 views

Adding elements of second list in succession

Given t1 = {{1, 2}, {3, 4}}; t2 = {{a, b, c}, {e, f}}; I want to add in succession elements of list 2 to list 1 to get: ...
0
votes
1answer
37 views

SemidefiniteOptimization stops and does not work

I am trying to make the following code work: ...
0
votes
1answer
28 views

ParametricNDSolve with more functions

A MWE of my problem is this: ...
1
vote
0answers
34 views

Recognizing Padé approximant in Simplify/Refine

Having used Maple before, I know for a fact that there we can just type in a function, then separately define its Padé approximant (or Taylor) and then use simplify ...
0
votes
0answers
30 views

Latex Stylesheet and inline text cells

I am looking for a professionally looking LaTex ish stylesheet, where i can still calculate equations within Mathematica. Also i am wondering if i can get inlineText cells to display summations with ...
2
votes
1answer
79 views

Create graded mesh

I want to create graded mesh inside a cube, with finer mesh in the left half and a coarser mesh in the right half. My plan was to partition the cube with a 2D plane and then generate boundary mesh ...
2
votes
1answer
72 views

Epilog isn't working

I'm trying to put an arrow to denote a point on a Plot ...
1
vote
1answer
61 views

i need to simulate a roulette table where a perosn bets $10 on red 1 time, 5 times,20 times, 100 times and 10,000 times

I need to simulate a roulette table where a perosn bets $10 on red 1 time, 5 times,20 times, 100 times and 10,000 times, i then need to find out how much the person wins or loses once they play 10,000 ...
1
vote
0answers
30 views

Standalone Kernel No input available

I have encountered the same problem as the thread attached. Mathematica stuck in "running" for every calculation I attempt, kernel error However, when I try to launch a standalone kernel ...
0
votes
1answer
38 views

Quick question about “shifting x axis”

Imagine I have two lists: x={x1,x2,x3,x4,...} y={y1,y2,y3,y4,...} And I want a listplot ListPlot[Transpose[{x,y}]] Would do ...
1
vote
1answer
31 views

Changing initial conditions in a recursive polynomial family definition. Then, finding the generation function for this family

I'm following a paper trying to find a way to repeat the done computations using Mathematica. I'm beginner using Mathematica and I already read that: I could define functions by recursion; I could ...
2
votes
1answer
71 views

Create concentric circles with numbers inside

Hello there if you can give me a hand I want to create and export to pdf the following figure, which if you realize forms the multiplication table. The idea is to be able to control the central number ...
3
votes
1answer
101 views

adding a point in a manipulate command

I am having trouble adding a point to mark the Min values of each parabola when using the Manipulate command? ...
1
vote
0answers
48 views

Running NonlinearModelFit in more one kernel simultaneously

I want to perform a nonlinear least square fit of data points upto 3000. Because the model I provide is huge polynomials with 300 to 400 fitting parameters to be estimated, my mac i7 computer proceeds ...
10
votes
2answers
245 views

How can I plot my financial indicator below a trading chart (produced by TradingChart) with the same x-axis?

Since this question was not answered, I would like to ask again with some additional information. I have a trading chart saved as chart1 as follows. ...
1
vote
0answers
36 views

How to reduce the computation time of this series expansion?

I have a complicated function gg[Delta,l][z1,z2] which is given in the sample code below. I would like to expand this function for as many ...
0
votes
1answer
45 views

Not respected assumptions

I' m writing a function with the following line: ...
5
votes
1answer
98 views

Nest or fold a series of geometric transforms

I have a requirement to perform a series of GeometricTransformation[]s using the AfineTransform[] function. I use these to set ...
0
votes
1answer
60 views

How can one get an edge/border on a sphere/point in 3D scatter plots

I want to get a point or the Sphere[] Graphics3D object to have a border or edge in a 3D scatter plot. The EdgeForm[] directives seem to apply only to polygon objects. The effect I am trying to get is ...
2
votes
1answer
71 views

How to write this simple task of unimodular prime search in mathematica?

For testing a particular algorithm I found mathematica is the best way as it has all the tools I need. I am stuck in a number theory part and since I am not an expert in mathematica I do not know how ...
1
vote
0answers
62 views

Morphing between images

With Mathematica it is possible to continuously morph between images of different faces. But I was wondering if it is also possible to morph between images of any kind? An example that uses Artbreeder ...
0
votes
1answer
21 views

Binomial sum only expanded, not computed [closed]

I want to compute this sum: $\sum _{n=1}^4 \frac{(2 n-1) \sum _{k=0}^{n-1} \text{Binom}(6,k) \text{Binom}(10,-k+2 n-1)}{\text{Binom}(16,2 n-1)}$ ...
1
vote
0answers
26 views

how to get [ ] in the axis title?

I have two problems when I was formatting the plot. First, I added "Log [ ]" for my axis title but it shows as "log ( )" on the plot. Secondly, after I added the frame boundary my ...
0
votes
2answers
64 views

Computing a difficult integral which is taking too long

I am trying to solve the following code: ...
1
vote
0answers
30 views

avoid using protected variable names in defining static pure functions

I will provide one example to show what the problem is. Collatz[m_] := Collatz[m] = 1 + If[EvenQ[m], Collatz[m/2], Collatz[3 m + 1]]; Collatz[1] := 0; this ...
1
vote
1answer
33 views

Multiple functions compact form

I have a sort of silly question... I need to define two functions in the following way ...
2
votes
0answers
44 views

Sound steganography with `InverseSpectrogram`

Here is my code of how to hide a message inside a sound: ...
2
votes
3answers
93 views

Asymptotic values of integrals

For an integral like $$D_{n}(x) \equiv \int_{0}^{x} \frac{t^{n}}{e^{t}-1} d t$$ The asymptotic values are given as $$D_{n}(x) \simeq\left\{\begin{array}{ll} n ! \zeta(n+1)-x^{n} e^{-x}+O\left(x^{n} e^{...
2
votes
1answer
174 views

Improvement of code precision using NDSolve for Differential-Algebraic equation

I'm trying to solve a system of 24 non-linear Differential-Algebraic equations (DAE). I'm using the command NDSolve in Mathematica to solve this system, using this command, the error is too much large....
1
vote
0answers
28 views

Matrixrank returns the matrix only and doesn't tell rank [closed]

I've defined a matrix "a={{1,1},{2,2}}" and I tried finding out its rank by "Matrixrank [a]", however it only gives output "Matrixrank{1,1},{2,2}}". I tried several ...
0
votes
0answers
70 views

White Point Correction in ColorConvert

One can do color space transformation with Mathematica's ColorConvert function. This function supports basically all relevant color spaces. However there is one not well documented statement in this ...
3
votes
2answers
56 views

Renaming expressions dynamically in Mathematica

I am trying to write a statement that will create a new positionVector as I parse through a matrix. What I am trying to accomplish would look something like this, For[i = 1, i <= vectorlength, i++ ...
0
votes
1answer
43 views

How to correctly solve this problem with ParametricNDSolveValue

I am solving Regge-Wheeler equations for electromagnetic perturbations of a Schwarzschild black hole. See this paper for Regge-Wheeler equation. The differential equation that must be solved is of ...
0
votes
0answers
59 views

How to preserve my constants

\[Sigma] = Constant a = Constant b = Constant \[Epsilon] = Constant T[x_] := (\[Sigma]/(2*\[Epsilon]))[a/(a^2 + x^2)^(1/2) - b/(b^2 + x^2)^(1/2)] In mathematica ...
4
votes
3answers
166 views

Computing and dynamically displaying the intersections of three circles

I don't understand why I get the following output: when in fact I was expecting to get $Failed, 1 or ...
2
votes
1answer
48 views

Placing text over a rectangle using graphics

I need to add some text to rectangles that I am using as a scale bar. I want the text right above the rectangle and centered. Here's my code: ...
2
votes
0answers
134 views

Solving a Modified Biharmonic Equation on a Square

I am seeking to solve the differential equation \begin{equation} \left[\partial_{\overline{x}}^{4}+2\left(1+\delta\right)\partial_{\overline{x}}^{2}\partial_{\overline{y}}^{2}+\partial_{\overline{y}}^{...
0
votes
1answer
47 views

DSolve for System of Non-Homogeneous Differential Equation

Solve: x' = Ax + b Given: A = {{1, 2}, {3, 4}}; b = {{e^{t}},{2}}; This will solve if b == 0 DSolve[{x1'[t], x2'[t]} == a.{x1[t], x2[t]}, {x1[t], x2[t]}, t] But if ...
3
votes
1answer
106 views

Plot ellipses in a exponential curve

I am trying to produce a single plot, where the ellipses fits neatly within the given curve function, and with each intersecting the curve at exactly 4 points. The ellipses is $x^2/a^2+y^2/b^2=1$, ...
0
votes
1answer
27 views

ItoProcess with matrix of equations

What is the cleanest/simplest way to use ItoProcess to solve the equation $$i \text{d}\boldsymbol{\psi} = H\cdot\boldsymbol{\psi} \text{d}t + \boldsymbol{\psi}^2\...

15 30 50 per page
1
6 7
8
9 10
1459