All Questions

64,197 questions
Filter by
Sorted by
Tagged with
37 views

BarChart: First Bin centered at 0 instead of 1

I want to plot an overlapped graphic comparing the experimental and theoretical data of the number of counts in a given time (beta decay), so I show them in a histogram. Because of sometimes the ...
20 views

DensityPlot: Error messages and strange bar legend

Bug introduced in 11.1.1 or earlier and persists through 12.0 I want to plot the following DensityPlot with axes given by Trr ...
58 views

Trying to use NDSolve to solve a system of non-linear PDEs representing the development of Alzheimer's disease over time

I'm trying to do something very similar to this question, except with a much larger system of PDEs from this paper. The PDEs are equations 1-18 in that paper. Equations 9, 10 and 15-18 have laplacian ...
18 views

Create symmetric array of function values

I have function B[i,j] where i,j are integers. Then I create array: b = Array[B, {3,3}] now I set values of ...
42 views

Evaluation control inside Compile

I have the following function ...
30 views

Log contour Plot does not plot the whole range

I have the following code: ...
19 views

Converting a contour plot in mathematica to a contour plot in matlab

Consider the table f[x_, y_] := x^2 + y^2; tab = ParallelTable[{x, y, f[x, y]}, {x, -5, 5}, {y, -5, 5}]; I can produce a nice contour plot in mathematica by then ...
9 views

Best approach to Save the BestValidationRound throughout training

I have a network that I would like to train.I would like at the end of training to be able to have the BestValidationRound, from all training Rounds. I would not want to have ...
38 views

Using PlotRangePadding given as a range with ListContourPlot

When I am trying to use PlotRangePadding with a fixed range (not symmetric with x and y axes) for a graphic generated by ListContourPlot, it is coming back with an error message that PlotRangePadding ...
34 views

Remove extra space between functions and labels, when subscripts are used

I want to plot a function for different values of my parameter, 'y_a', where a is a subscript. Here is my code: ...
38 views

How to Add a Constraint on the Derivative of the Model in FindFit

I would like to add constraints on a model and its derivatives and then use FindFit to fit some parameters. An example is below: ...
150 views

How do I plot a plane AND a graph in ONE 3D Plot?

I want to plot the Van der Waals-equations, specifically the part in which the Van der Waals loop is shown. First I tried plotting it with the Plot3D[] function, ...
52 views

How to definitely switch off the Check Spelling function

I formulated the question entirely enough in the title. Below I give some background to explain why do I need to do such a crazy thing. I have a son of 17 years old who has autistic problems. It is ...
306 views

Siginificant speed difference of Integrate between 9.0 and 12.0

I just upgraded from 9.0 to 12.0, and I found some strange difference in timings for the following expressions: a. Integrate[Exp[-a*x^8],{x,-Infinity,Infinity}] b....
41 views

How to plot rotated elliptical Gaussian beam in Cartesian coordinate [on hold]

I want to plot a rotated elliptical Gaussian beam (major axis on 45 degrees or between x and y-axis, I tried using given below code. ...
98 views

Changing tick labels to percent

Suppose I have a graph with y values between 0 and 1 (say). How would I go about changing the tick labels to percentage (so that 0.1 would go to 10%, and so on)? Documentation seems silent on this ...
27 views

Exponential function on matrix returned wrong answer [closed]

I'm using the newest version of Mathematica 12 Suppose the following expansion with assumption that $\delta$ was real number. ...
56 views

How to solve this double summation question with an unknown [closed]

How to solve this double summation with an unknown in the outer sum? Any full step solution to solve this?
36 views

How to extend the DefaultDuration of Manipulate[] when it has Bookmarks?

How to extend the DefaultDuration of Manipulate[x,{x,0,1},Bookmarks->{"beginning":>(x=0),"end":>(x=1)}] to 20 ...
102 views

How to change plot markers in ListPolarPlot [duplicate]

I've been trying to draw a polar plot using the ListPolarPlot function with custom marker shapes. However, when I use PlotMarkers...
38 views

PlotLegends don't match the plot's curves

Can anyone help me make the legends(markers) match with the figure curves? I have 2 figures that have three curves each, and then I have to combine them. I used the following code for the first figure:...
35 views

Multiplying two ScientificForm? [closed]

I am computing different ScientificForm and am interested in keeping track of their individual values, as well as combining them in the end. When I multiply them ...
43 views

How use the same Compile function with different equations

Say I have 2 equations that take the same parameters and variables that I want to evaluate numerically in compiled code ...
201 views

How to select pairs in a list of pairs where the second pair element is within a specified range? [closed]

I have a list like the following list of pairs: ...
32 views

Removing all sublists containing any arbitrary string as one or more of its list component

so, basically I have a list of sublists of varying length. For example, ...
39 views

Live calculations in equation typsetting?

I want to put together an equation graphic with a live calculation in it. If I use HoldForm, it retains the formatting I want, but I don't know how to ReleaseHold (or whatever is required) to insert a ...
41 views

Derivative operator w.r.t a vector index and change of variables

Description and code lines: Define a scalar product to represent $A_i·A_j$ , $A_i ·B_j$ and $B_i ·B_j$, such that $A_i · A_i$ = 0. This is implemented in the following way: ...
44 views

code for coupled system in mathematica

\label{velocity} (1+\lambda{f^2}){f^{\prime\prime\prime}}+ff^{\prime\prime}+2\lambda{f^{\prime}}f^{\prime\prime}- ({f^{\prime}}+\frac{\eta}{2}f^{\prime\prime})-(f^{\prime})^2+M(f^{\...
45 views

Use special characters or regular characters with BubbleChart

I have a list of points I want to plot. I'm trying to use BubbleChart because I want to assign to each point a different shape. How do I plot a BubbleChart with each point drawn with a different ...
41 views

Finding eigenvalues of the Laplacian on solenoidal (divergence-free) vector fields

In Mathematica it is easy to find eigenvalues of the Laplacian in simple cases. For example, on $\Omega\in \mathbb{R}^2$: ...
61 views

Numerically solving a system of ODEs with parameters [on hold]

I am working on solving a system of coupled ordinary differential equations with initial values given. When I searched about my requirements I got the similar answer here. But I got another condition ...
46 views

NDSolveValue::fembdcc: Cross-coupling of dependent variables is not supported in this version

It seems that Mathematica can't solve differential equation when one of the arguments requires that the value of one variable is equal to the value of the other variable, when I try this I get this ...
51 views

Error in a simple plotting code [closed]

I have the following code: ...
64 views

Applying a function on several columns of a dataset fails on Missing

Consider a dataset with missing values: ...
37 views

One Function of Two Random Variable

I wonder how to implement below derivation in wolfram mathematica. I want to see integrate results like below picture. Can you help. I used "TransformedDistribution" but it shows only distribution ...
34 views

Plotting with sub and superscripts on the PlotLabels

Bug persists through 12.0. I'm trying to produce a plot with PlotLabels that include sub- and superscripts. However, I haven't been able to do it consistently. ...
82 views

A question regarding 3D plot

Updated I have an equation: $x (z \ln z) = y$. For different values of $x$ and $y$ we can solve this equation for z, for example, for $x = 3$ and $y =1$, we have: ...
35 views

Logarithmic contour plot floating point precision

The following code plots the difference between two functions in a contour plot. ...
39 views

Solving numerically an equation with an integral

I am trying to solve the following equation numerically: Equation to solve for $y$: $$na(ay-y)^{n}\int_{ay}^{+\infty} \frac{(x-y)^{-n}}{x-ay}dx=b$$ with for example $a=4$, $n=1.25$ and $b=1.6$. I ...
25 views

FindFit or NMinimize? Fitting a System of ODEs to Long Time Behaviour

I am looking to fit a model composed of a system of ODEs to a long term behaviour given by a single data point of the final steady state of the system (e.g., x[1000] == pi/2). I have tried using both ...
19 views

ToExpression[“string”,TeXForm] doesn't work

I want to convert LaTeX equation to Mathematica code. I want to use ToExpression["x", TeXForm] to input some equation in Mathematica. However, my mathemtica doesn't ...
34 views

Contour Plot not taking previously defined expressions?

I am new to Mathematica so my question might sound a bit silly, but I hope you help me. While learning ContourPlot, I have learned that when I use the previously ...
61 views

easiest way to construct the following determinant

What is the easiest way to construct the following determinant?] p is variable, I want to vary value of p each time and get the appropriate determinant.
47 views

Determinant of Gauss (Area of a polygon of n vertices) how to implement

A very useful procedure to find the area of ​​any irregular polygon is through the Gauss determinant. It involves drawing the figure on a Cartesian plane, setting the coordinates of each of the ...
39 views

D: Understanding the output of 'n' th derivative of a function involving Exp[1]

I am trying to find the $n^{th$ derivate of a function involving Exp[1] as given below. ...
206 views

How to open a Python interpreter input cell?

Something weird just happened to me: I mis-typed a keyboard shortcut, hitting the wrong keys, and a new notebook opened up with a Python prompt! Just for grins, I tried entering some simple Python ...
35 views

How to modify the horizontal ticks in a LogLinearPlot? [duplicate]

Using the following code, ...
226 views

Why the Kernel crashes on these integrals in V12?

Reported to WRI, [CASE:4331819] This is using V12, on windows 10, 64 bit. Note: these integrals work OK on 11.3 on same PC. Any idea why the Kernel now crashes on these types of integrals? ...