All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Axes label outside plot without Frame

I'd like to draw a plot with the $x$ and $y$ axes labeled outside the plot and along the axes (with $y$ axis rotated)--not at the end of each axis--as in this Matlab plot. Moreover, I do not want to ...
1
vote
1answer
8 views

How do I color edges on a graph using a pattern?

I have the following code, an attempt to color the even branches of a tree... but it’s not working correctly: ...
0
votes
1answer
11 views

How to use assumptions without Simplify[]?

According to this simple example program, the assumptions evaluated only with the Simplify[] function call. However, I wouldn't like to use Simplify[] because it can be very slow with longer ...
2
votes
2answers
16 views

Assign Values from Array to Array

I am trying to simply do the following cVec = {a,b,c,d} From another expression, I obtain another vector, say, ...
0
votes
0answers
25 views

Finding Fourier transform of a quantity v/s theta (0 to 360 degrees)

I have a physical quantity (experimentally measured) lets say T whose variation I have measured with angle (theta in degrees). I want to find out the Fourier components of this quantity with respect ...
0
votes
0answers
22 views

FindMaximum error (not a real number)

For the code below, I get several error messages once I click the "Enable Dynamics" button. However, once I run the code, the output works fine, so, if that is all I wished to do, I would just live ...
0
votes
0answers
20 views

Compiling a function containing Apply

Well, the following function fun1 will be used thousands times (a single argument among these thousands one is called arg in the following) . Speeding is therefore critical for my code (KenKen ...
0
votes
0answers
38 views

System of equations

Can you please help me to solve and check true or false this system of equations ...
0
votes
0answers
14 views

Differential equations system's solutions differ when one of the constant is 0

I am solving the following system of equations with Mathematica. $u'=-k_{1}ux+k_{2}x^2, x'=k_{1}ux-k_{2}x^2$ and I obtain the solution for x: $x(t)=\frac{e^{k_{1}C_{1}(t+C_{2})}k_{1}C_{1}}{-1+e^{k_{1}...
0
votes
0answers
20 views

How to extract the last output from the Maximize

Pitty on me! Still a beginner. After using Mathematica for 8 years and spending an hour on google, I remained unsuccessful to find an answer of: How to extract the last element of the output of ...
0
votes
1answer
23 views

Using Sum notation for equations of motion

How would I simplify these expressions into sum notation in mathematica? For example, in a 3 body system of the earth moon and sun. Where masses are ...
0
votes
0answers
27 views

How to `DSolve` this differential equation?

How can I DSolve this equation? ...
1
vote
1answer
22 views

Text with the same proportions as the graphic

What do I need to do to make the text keep the same proportions as the rectangle even when I increase the image size? ...
3
votes
1answer
36 views

Detect sub figures and split automatically

I would like to take a large figure showing a sequence of individual plots and automatically split the into series of images showing the individual sub-plots (to be exported as animated GIF later). ...
1
vote
1answer
24 views

How to delete additional line from a DXF file

Is there anything I need to add to my code so that the generated DXF file does not contain a diagonal line in the generated profile? ...
0
votes
0answers
12 views

Problem in implementing periodic boundary condition to solve a system of PDEs with period 2 Pi/constant

I wish to solve the following system of PDEs for h1, h2 using periodic boundary conditions and specified initial conditions. When I execute Mathematica complains that the boundary conditions are not ...
0
votes
0answers
38 views

3 body problem for earth sun and moon

Im trying to model a 3 body system consisting of the sun, earth and moon. ...
3
votes
2answers
91 views

Plot problems: vertical lines and letters

In few words, I would make this graph: My many problems are the following: How do I plot a vertical line? What's the equation? How do I add the letters on the lines? How to make the Ticks like $...
0
votes
2answers
25 views

Plotting 3-d function using Evaluate and Table

I want to plot $z(F, x, \lambda)$ where I fix a few values of $F$ and $\lambda$ and see how it varies with $x$. With 2-d functions, I could vary the second parameter easily using a combination of <...
0
votes
0answers
15 views

System of delay differential equations: using first interpolation as second initial condition

I am trying to solve numerically the following system of two coupled delay differential equations: $$\dot x(t)=-\gamma x(t)-\frac{\gamma}{4}e^{i\omega_0\tau_1}y(t-\tau_1)\theta(t-\tau_1)+\frac{\...
0
votes
0answers
33 views

How can I output a 3D vector picture?

In mathematica, when I plot with the plot3D function, the output 3D surface graphics are not vector graphics (although I have saved them in .svg format). I want to ask, how can I output a 3D vector ...
0
votes
0answers
24 views

After activating, inactive integral, output is coming same as input

I am trying to plot s w.r.t r (0,10). But because of inactive integral I am not able to. When I activate inactive integral, output is coming same as input. When I am trying to plot graph w.r.t r(0 to ...
0
votes
1answer
62 views

Alternatives to using LinearSolve

...
1
vote
0answers
32 views

Deep neural network training on large datasets

I am training a deep net on large training dataset. I read the tutorial from the following link: Training on Large Datasets. I have put each predictor-preditand tuple into a separate mx file. My ...
0
votes
0answers
23 views

Variable subscript substitution - easy way?

I have a Mathematica expression with about 900 terms, that looks roughly like this: $X_{1,1} + Y_{1,2} + Z_{1,3} + XX_{1,4} + XY_{1,5} + ... $ Is it possible to perform a fast method to copy this ...
1
vote
2answers
66 views

Having trouble with Part

I'm very new to Mathematica. I'm just trying to plot some data, but Mathematica says there isn't a 7th element my data which is an array of 7 elements. The code before the plot is here: ...
0
votes
0answers
35 views

Separatrix (or homoclinic orbits) in the equatorial plane of Kerr metric

I would like to plot the separatrices (or homoclinicorbits) in the equatorial plane of the Kerr metric as right panel of Fig. 1 in https://arxiv.org/pdf/0811.3814.pdf. My code is the following: ...
0
votes
2answers
45 views

What are equations on mathematica and differences between these errors?

These are the three errors I was given. I so far wrote the code which was computing the polynomial interpolation but now I am asked to find those three norms: norm error mean norm error maximal ...
0
votes
0answers
22 views

Let `PlotLabel` use data set names in a list of plots

In the code below, how to make PlotLabel automatically show the name of the data sets (i.e., aa, bb, cc)? ...
0
votes
0answers
67 views

Is Mathematica calculating Lagrangian correctly?

The following Lagrangian is available: $$ L = (\omega(t))^2J(t,\theta(t))-m(\omega(t))G_gP(t,\theta(t)) $$ Here $\omega(t)$ is the angular velocity of the body; $J(t,\theta(t))$ - a variable moment of ...
0
votes
1answer
22 views

I am having trouble with the Show[] section of this code

Question: I am unsure how to graph the interpolated graph with the regular graph on the interval [1,4]. Not even the Show line works about im pretty sure its written correctly. Clear["Global`*"] f[...
0
votes
2answers
47 views

How to get Nintegrate of multi-dimensional oscillatory function to converge?

So I have the following integral I wish to compute. The constants required are defined as: ...
0
votes
3answers
64 views

listing matrices with some special constraint

I would like to first obtain the list of all possible 4 x 4 matrices from the followings ...
0
votes
0answers
23 views

Manipulate and CloudDeploy [on hold]

It is easy to specify the initial position for the slider in Manipulate, as pointed out in the answer to this question. However, when I wrap a ...
0
votes
0answers
19 views

Slide show numbers show 0

In one of my "Classic" slideshows, the numbering is corrupted. When new slides are inserted, they show up as slide number 0 (several of them), while the originals retain their numbers. Is there a way ...
1
vote
1answer
33 views

FindInstance confused by CoprimeQ

For some reason when I type FindInstance[a + b == c && CoprimeQ[a, b, c] == True, {a, b, c}, Integers] Mathematica just immediately returns my input as ...
0
votes
0answers
27 views

Implementing a generic product rule

I'd like to implement a generic rule for expanding differential forms by the product rule. For instance, I'd like to transform the following PDE: $\phi \frac{\partial \phi}{\partial t} = \phi \nabla^...
1
vote
0answers
56 views

Is function polymorphism possible in Mathematica [duplicate]

Is there a way to have polymorphic function definitions in Mathematica? I looked around online and didn't anything discussing it.
1
vote
0answers
34 views

Transpose two lists with rightarrow and commas [on hold]

I need to transpose the two following lists: data0 = {99.52267, 93.78726, 99.67644, 99.85036}; error0 = {0.21152, 0.37626, 0.16309, 0.10167}; Into ...
2
votes
1answer
54 views

How to update values in a Summary Box?

Update The code below works fine. Failed update of summary box was from a typo in the actual code. Admins can delete this question if needed. For a summary box that includes a calculated value ...
0
votes
1answer
30 views

Compare their asymptotic behaviour using the order notation

For each pair of the following functions, compare their asymptotic behaviour using the order notation. f(n) = e^n and g(n)= 3n^2
3
votes
0answers
74 views

Text flow into user-defined outline

I'd like to flow text into a region defined by a curve, such as: ...
1
vote
2answers
65 views

How to fit different parts of a log-log plot

I have data of a function that goes like $f(x)\propto x ^\alpha $ for a certain range of $x$ and like $f(x)\propto x^\beta$ for another one. It is common in the literature to make a log log plot and ...
-1
votes
0answers
29 views

Prove that of two discrete random variables X and Y are independent [on hold]

Prove that of two discrete random variables X and Y are independent, then H(X|Y) = H(X).
0
votes
0answers
39 views

How can we calculate the probability for different events [on hold]

For example, You send out three messages for help: a smoke signal that has probability 0.1 of being seen a message in a bottle that has probability 0.2 of being found a carrier pigeon that has ...
0
votes
1answer
28 views

How to restore broken Automatic cell grouping behavior?

By default output cells are grouped with the input cell from which they are generated (note the nested cell brackets on the right): Sometimes it is desirable to group manually input cell with ...
0
votes
0answers
19 views

What won't ContourPlot show a non-empty plot? [on hold]

This is the code that doesn't work: ...
0
votes
0answers
26 views

Compute entropy of the following random variables

Compute entropy of the following random variables: the random variable X that takes the values 0, 1, with probability 1/2.

15 30 50 per page