# All Questions

165 views

### Evaluation of Alternatives

I recently stumbled upon a few examples that suggest patterns containing Alternatives do not evaluate for individual alternatives. For example: ...
64 views

### How to define a complicated function inside the body of Compile?

I want to compile a function in a way to keep its memory footprint down. In the example below, I am trying to compile a function f that makes three calls to ...
46 views

### Why doesn't mathematica evaluate the cells?

I have the following code in mathematica. Everything was ok and I was simplifying but suddenly mathematica crashed and after that it seems that it doesn't evaluate the functions. ...
48 views

41 views

### Unable to plot higher order polynomial equation using NSolve and contourplot

I have a polynomial equation in 'a,b' and I am trying to plot a curve between 'a' and 'b'. Both NSolve and ContourPlot works well upto 'a=15' , but after that the plot has scattered points. Is this ...
53 views

### how to generate a 3d graph of HCP crystal structure [duplicate]

I am confused with lattice parameter and the basis. The structure I generated is not HCP. To verify this, one could use this plotting function from the answer to Can a LatticeData image be displayed ...
22 views

### MatrixForm in Mathematica [duplicate]

I wanted to do subtractions between to matrices and I did the following ...
108 views

### Is equation numbering in exported HTML considered deprecated for built in stylesheets?

TLDR or simply stated: how do I export equation/section numbers to HTML? The built-in function doesn't seem to do it. Longer form of the question: So I've been tinkering around with the built in ...
251 views

### How to extract a contour line (or a region) from a ContourPlot?

Given a ContourPlot with a set of contours, say, this: is it possible to get the contours separating domains with the different colors in the form of lists? ...
26 views

### how to plot many curves for different values of a certain parameter [on hold]

how to plot many curves for different values of a certain parameter of a function? how to plot many curves for different values of a certain parameter of a function? i.e. i need to get one figure ...
57 views

### How to get the analytical solution of this equation set

There is a equation set: {2 x^2 + 49 - 7 x - 2 x Sqrt[x^2 + 49 - 7 x] Cos[rad] == (7 - x)^2, 2 x^2 + 49 - 7 x - 2 x Sqrt[x^2 + 49 - 7 x] Cos[rad + Pi/3] == 49} ...
46 views

### Manipulate slider freeze, and empty value in box

Here's a MWE code to show two problems I'm experiencing with the sliders and their value box, under Manipulate : ...
133 views

### Manipulations with options

I have two functions with options, for example f and g ...
74 views

### Why a part of this expression, similar to another, is left unchanged?

An expression has one of its part replaceable and one, strictly similar, that isn't. Please, can you point at the difference ? I can't pinpoint the complication ... The FullForm of ...
283 views

...
64 views

### Is there a bug of InverseDistanceTransform?

This is a example of documentation about InverseDistanceTransform. But this is my picture But it doesn't work: ...
44 views

### NIntegrate::inumri: error [on hold]

I am getting the following error: NIntegrate::inumri: The integrand c (1-0.6 (1-(1+Times[<<2>>])^0.5)-0.4 (1- (1+Times[<<2>>])^0.5)) (1-0.6 (1-(1+Times[<<2>>])^0.5)-0.4 (1- ...
52 views

### NumberForm pesky warning from Manipulate

I'm using the NumberForm command inside a Manipulate environment, and in some special cases Mathematica gives a pesky and mostly useless warning message : NumberForm::sigz: In addition to the ...
69 views

### Estimating error in NDSolve

I would like to give a theoretical estimation of local truncation error (and then for the global one) for a solution to a numerical initial value problem by ...
49 views

### Problems with QueueingNetworkProcess [on hold]

I have a two stage queueing network and want to vary the number of servers at the second node. The input data and the Manipulate command is below: ...
226 views

### Existence of an analytical form for integral

Can the following integration be performed with an analytical output? ...
44 views

### How to make an empty list inside a module program? It consatly spews errors [duplicate]

Okay, so, I'm trying to write a program within the module. It goes like this: create empty list, join it with a sample from a certain set called MyList, and then repeat it certain number of times. ...
76 views

### MeshRefinementFunction missing points

I'm doing some FEM on a rectangular region with a spherical cavity: ...
936 views

### How to set precision and format labeled Slider in Manipulate?

For my calculations, I need increased precision of parameter k in my Manipulate: ...
151 views

### Graph generation from a non-paired edge list

The elements in e = {{6414, 6598, 6927}, {7, 1035, 2382, 6927}, …} are the graph nodes; for example, {6414,6598,6927} is ...
23 views

### weird behaviour of Listable fortran Librarylink function: different result each evaluation

I am working with fotran librarylink function currently. In this post, I will show some weird result of Listable fortran librarylink generated by intel compiler under windows (I tried gcc on linux the ...
51 views

109 views

### solving coupled differential equations with parameters subject to optimization problem

I have an equation, but I don’t know how to program it in Mathematica: x[0]==1; y[0]==1; x'[t]==(a+b) x[t] y[t]; y'[t]==a b y[t]/x[t]; where ...
103 views

### Efficiently generating tuples with Outer

I'm trying to efficiently generate tuples of lists of objects that satisfy a given criterion. The similar questions that I have found on this website end up finding a specific workaround for the given ...
27 views

### Length in Compile encounter “type Integer encountered in assignment of Type Real ”

Compile[{}, Module[{n}, n = Length[{1, 2, 3, 4}]; n = n/2]] The above code will emit errors Compile::cset: Variable n of type _Integer encountered in ...
373 views

### Numerical solutions of Gross-Pitaevskii equation [on hold]

I am trying to solve the Gross-Pitaevskii equation numerically and using NDSolve, but this seems to be a dead end. The problem is boundary and initial conditions ...