# All Questions

8 views

### How to integrate with integer parameter in Mathematica?

I would like to integrate the following exoression with N being integer Integrate[(1 + Cos[f (1 + 2 10) [Pi]])/( 1 + Cos[f [Pi]]), {f, 3, 10}, {Element[N, Integers]}] Unfortunately the line above ...
17 views

### Plotting vectors and curves on a 3D surface

I am having trouble plotting curves on surfaces. I have searched for similar examples and I have tried both Plot3D and ParametricPlot3D commands and experimented with Epilog and MeshFunctions (et.c) ...
22 views

### Apply function to a part of a list

Let's say I have some data: data={{a1,b1},{a2,b2},{a3,b3},{a4,b4},...} and I would like to apply the function: f1[x_]=x*5 to ...
8 views

### Performing numerical derivative after numerical integration

First of all, I am sorry to repeat a question which is similar to the closed question, "Numerical Derivative after numerical integration". I could not understand the solution introduced in the link. ...
20 views

### ListPlot of a complex data file

Here are some sample data: ...
11 views

### How can I plot a “slice” of the mesh for a 3D plot?

I'm using NDSolveValue to solve the Laplacian equation for this geometry: I want to view the mesh that NDSolveValue is using, so I do the following: ...
34 views

### How to solve polynomial equation using Mathematica?

Solve for $x$ the following equation. $$(ax+b)(cx+d)=(cx+f)(ax+g)$$ Where $a,\,b,\,c,\,d,\,f,\,g$ are constants.
11 views

### seach combinaisons of terms that equals a sum within a sequencial ordered linear values? [on hold]

subset size k = 2 (can be > 2) Sum to find = 11 sequence : 1,2,3,4,5,6,7,8,9,10.. n => result of k-size [1,11] [2,9] [3,7] ....
31 views

### BarLegend problem when rescaling color of multiple vectorplot

I want to make multiple vector plot at same color scale with same BarLegend. Similar posts are (1), (2) I made a minimal example to show the problem I encountered ...
41 views

### Missing curves in a plot

I am trying to plot multiple curves for a particular parameter in a function S1, where the only variable is t and the rest are ...
35 views

### Conjugate[A/B+C/D]

Trying to obtain the result of Conjugate[A/B+C/D] only gives the same result. As such, I use Refine as: ...
35 views

### The function I defined is not giving any output [on hold]

Could anyone tell me why the function I have defined is not giving any output? When I run it, gen is not showing any output. Thanks! ...
155 views

### Plot independent 2D graphs on walls of 3D Plot

Sorry, I know a lot of similar questions have been asked before, but I just can't find one that exactly describes my problem. How can I make the according 2D (marginal distribution) graphs appear on ...
59 views

### FindRoot with Grad

I want to find a numeric solution using Grad. With Solve, I get ...
61 views

### getWSLINK documentation vs reality

The example in the documentation for getWSLINK says WSLINK link = libData->getWSLINK(libData); Compiling ...
32 views

### Compute second functional derivative with VariationalD?

I have problems to compute the second functional derivative of a general function. The following lines generate the first derivative: ...
37 views

### Can MMA solve this min-max optimization problem symbolically?

I have a nonlinear optimization problem with linear constraints. How to solve this? $\sigma_i$ and $\rho_i$ are the optimization variables. $\min\hspace{1mm}\max{D_1,D_2}$ subject to ...
62 views

### Wrong limit: Limit[(1 + (-1)^n/n)^n, n -> Infinity]=1 (Mathematica 10.4 and W-Alpha)

Since $(1-\frac{1}{n})^n\to 1/e$ and $(1+1/n)^n\to e$, the sequence $(1+\frac{(-1)^n}{n})^n$ has no limit as $n\to\infty$, but has limits for odds and even numbers. If $n$ were taken to be real, there ...
54 views

### 3DPlot Rendering Artefacts (z-fighting)

I am trying to render a matrix as a depth map: ...
31 views

### Wave equation PDE with changing boundary condition

This is my first post here, normally with mathematica I will solve out the PDE using eigen function expansion or separation of variables and then model the solution in mathematica. However this time I ...
59 views

### Mapping over function's several parameters regions

About this post: Mapping multiple parameters of a function to specific values I wonder if the parameters a and b have ranges ...
57 views

### Wrong numerical results from LegendreP

{Cos[Pi/180] // N, LegendreP[46, 0.9998476951563913], LegendreP[46, Cos[Pi/180]] // N} give ...
169 views

### Vastly incorrect answers obtained by increasing WorkingPrecision with modified Bessel functions

This is a follow-up to this question regarding numerical instabilities occurring with modified Bessel functions. In trying to explore J.M.'s answer to that question in greater depth by setting ...
34 views

### REAL Roots of a 2 variable Polynomial

I am looking to plot the real zeros of polynomials of two variables in Mathematica, but I have encountered an issue. To accomplish this task I have been using ContourPlot to plot the polynonial ...
58 views

### Optimization of the solution to an ODE

Apologies if this is obvious -- I'm very new to Mathematica. I'm trying to minimize the solution to an ODE with respect to a variable. The following code generates the solution to the ODE, ...
22 views

### Eigenvalues of a symbolic matrix using interpolating function

I have a 6x6 matrix with entries that depend on dependent and independent variables of an interpolating function. I would like to be able to evaluate the eigenvalues of this matrix using the ...
58 views

### Modeling Gaussian Distribution for 4 Variables

I have 4 random variables A,B,C,D, that all have the same variance $\sigma^2$, but they are independent of each other. What I am trying to find, or to at least approximate, is the standard deviation ...
76 views

### How to plot a lattice (2D or 3D) given a basis

I want a graphical picture of a lattice with basis such as $\{(1,1), (\sqrt{2}, -\sqrt{2})\}$. Does Mathematica already have a pre-made function that finds all linear combinations over $\mathbb{Z}$ ...
56 views

### DensityPlot with logarithmic xy-axes and logarithmic color scale

I would like to do a DensityPlot with logarithmic xy-axes and logarithmic color scale for the function \begin{align} S(\epsilon_{v},\epsilon_{\phi}) = \frac{\pi}{\epsilon_{v}} \frac{\sinh ...
59 views

MWE ...
51 views

### Minimize: which algorithm is in use?

How can I know which algorithm has been used by Minimize to solve a given problem? Can I force Minimize to use a specific ...