# All Questions

0answers
42 views

### Random protein in 3D [closed]

I would like to ask for help how to encode the following: I make a random sequence of aminoacids to make a protein, but how to make this visible like this: ...
1answer
41 views

### ListPlot3D Plot legend color shows as white with any Opacity set

I have the below code. Just three simple ListPlot3D graphs that I want to overlay on each other with opacity. The problem is that when I set any opacity less than one the color of the legend label ...
0answers
62 views

### How-to carry out a set of operations on a large set of three-dimensional vectors in most efficient manner?

Problem description Essentially, I am trying to carry out a set of operations on a significantly large set of coordinate data. The coordinates in the data set represent a uniformly distributed set of ...
1answer
43 views

### Polarization sum in FeynCalc

I think I know how to sum over final state fermion spins (FermionSpinSum[...]?) but what is the analog expression (in FeynCalc) if you have two or more polarization ...
0answers
37 views

### Displaying elements of $\mathbb{Z}/n\mathbb{Z}$

When I want to display the elements of the cyclic group $\mathbb{Z}/9\mathbb{Z}$, I get the output in cycle form like this: Is there a way I can display the group elements like this: ...
1answer
80 views

### Add single contour line to relief map [duplicate]

I have generated a relief map according to a method shown in Mathematica documentation, viz: ...
2answers
129 views

### Ignore some values at return

Is there Mathematica analogue of Python _ (underscore) or Matlab ~, a special variable, that can be used when a function returns ...
0answers
80 views

### How can I export a notebook as a single huge pdf page?

I have a notebook that I would like to export as a pdf file. I currently want to send this to a collaborator, but in general I'd like to keep the technique to future-proof my notebook collection ...
1answer
58 views

### join two ListVectorPlots

I have two ListVectorPlots, the are given below ...
2answers
81 views

### NonlinearModelFit gives imaginary numbers [duplicate]

I am having trouble using NonlinearModelFit to fit to data generated by the equation I am trying to fit to. ...
0answers
67 views

### Ergonomic night time reading settings [duplicate]

I was wondering if Mathematica had a built-in ergonomically safe night time reading mode for the notebooks. I was thinking of setting something up myself but I do not know the ergonomics/eye safety ...
2answers
59 views

...
3answers
90 views

### Adding more specific assumptions to Integrate

Let's say I would like to find a symbolic form for the integral $$\int_0^{2\pi}\sin^nx\,\mathrm{d}x$$with the added condition that $n$ is not only an integer, but an even one at that. Can this be ...
1answer
70 views

### How to calculate an average error between numerical and analytical solution of the PDE?

I have second-order initial boundary value problem. Here's my code returning numerical solution (and plotting it). ...
3answers
99 views

### How do I tell if two sets of dots are in some way similar?

I have two sets of dots (x,y coordinates) and I'd like to figure out if there's a way to find out if the second set of dots is (more or less) "close" to the first one. I may plot these two sets in ...
3answers
290 views

### How can I create currying functions using pure function syntax?

For example how can I write In: pureFunctionSyntax[myF] /@ {7, 3} Out: {myF[7, Log[7]], myF[3, Log[3]]}
4answers
2k views

### Random letters: What is the chance, that true words are coming?

Suppose, that we are just typing random letters with our keyboards(we use space bar too). We don't make difference between big and small letters. If we work for a long time, how much from the words ...
4answers
92 views

### How can I stop Solve returning the value of a root encapsulated in a list?

I have a Solve similar to the following: ...
2answers
75 views

### Expression in Part[] index

I'm new to Mathematica, and I have a problem with the following kind of code: f[x_] := {1, 2, 3, 4, 5}[[Mod[Floor[x], 5] + 1]] Integrate[f[x], x] When I run ...
1answer
62 views

### Removing a white polygon from a filled parametric plot [closed]

I have the following function ...
2answers
215 views

### What will happen, if I don't specify random seed by SeedRandom function?

Suppose I want to run several times of the same code containing RandomReal function, but I don't initialise the random seed. What will happen? I tried, but each ...
1answer
181 views

### “Spurious disk” detection with ComponentMeasurements

Using this code a third "spurious" disk is detected. ...
1answer
102 views

### What's wrong with MovingMap + Apply[Rule] etc.?

I don't why this happens, I don't know if those two examples are related. I don't have time to investigate, but maybe someone can solve this? ...
0answers
41 views

### Why doesn't RSolve work here? [closed]

RSolve[ {θ[n + 1] == θ[n] + 0.25*ϕ[n], ϕ[n + 1] == ϕ[n] - 2.5*Sin[θ[n]], θ[0] == π/2, ϕ[0] == 0}, {θ[n], ϕ[n]}, n] What's wrong with my code? I know ...
0answers
41 views

### Mathematica creates a huge eps file [duplicate]

I use the following code (based on the responses in my recent relevant questions) in order to generate randomly distributed unidirectional cylinders in a cylinder of elliptical cross section. ...
1answer
50 views

### Limit functionality in WildCats

Does the latest version of the WildCats (diagrammatic Category Theory) package support the calculation of limits (the associated tutorial section is empty)? If so, can anyone point me to a simple ...
1answer
53 views

### How to load two packages?

I want to use FeynArts and FormCalc. I've saved them in two different folders and I want to load and use both of them. This is how I load one of them: I write ...
1answer
62 views

### Difficulties in algebraic simplifications

I am a new user, and I am a bit puzzled while experimenting with Mathematica functions, their derivatives and derivatives of functions. I have an expression such as: ...
0answers
50 views

### Mathematica can't correctly compare powers? [closed]

Expression: $$\left(\frac{1}{b}\right)^{\frac{1}{1-a}}\text{===}b^{-\frac{1}{1-a}}$$ Output: False The nb file is here I tried to figure out in many ways but ...
1answer
27 views

### FindRoot::Istol error

I recently tried to find a root with FindRoot in Mathematica. I know that the problem has a solution, but when using FindRoot, this error appears : ...
1answer
59 views

### Control the color of contours [closed]

I use ContourPlot frequently and sometimes the contours are not easily discerned because most values are small with a few very big ones. When I use ...
0answers
69 views

### Echo server with Mathematica

Consider the following scenario: two wireless notebooks communicating via ad hoc one computer (the client) send packets via TCP protocol without Mathematica the other one is an echo server ...
1answer
46 views

### HDF5 file managing for dummies

I am new to HDF5 format and I am also not hundred percent confident with Mathematica. I have googled to find out examples to deal with HDF5 files in Mathematica but couldn't find one that work out for ...
1answer
39 views

### I have a term 'Keff' in terms of 'W'. I need to write 'W' in terms of 'Keff'. Does Mathematica provide an option for that

I have read similar answers on this topic. I am still not able to execute my code.The code is as follows. ...
1answer
54 views

### Random Variable in Recurrence Function

Following the previously published question, I'm looking for the solution of RecurrenceTable with explicit random variable. For example, something like ...
0answers
12 views

### Divide a number in unequal increasing parts [migrated]

I am working on a reward points system for my game. So as we know the points needed to reach a level increases level by level. For example if it needs 200 points to reach from level 1 to 2, it will ...
0answers
54 views

### Why FindRoot fail in this case?

I'm trying to solve a set of equations: \frac{\epsilon+(k(1-N)+2\beta)\upsilon_l-\epsilon \upsilon_l^2-2\Omega(1-N)\upsilon_l^3}{-\Omega\upsilon_l^4+k\upsilon_l^2-\Omega}=\sum_{j\neq ...
2answers
59 views

### How do you add one chart to the right of another? [closed]

I have two charts, and I would like to insert the data from one at the end of the other. However, the one chart has multiple ListLinePlots, and when I use Show to try and place the two together, the ...
4answers
1k views

### How to make a blob in 3D?

I am trying to make a blob like the one shown below, but in 3D so I can rotate it. I'm trying to use ParametricPlot3D or ...
1answer
78 views

### Is there a built-in function implementing the minimum and maximum gradient?

Suppose I have a set of data. Mathematica has fitting functions to determine the line and corresponding equation to the best fit given any arbitrary set of data. But in experimental techniques, ...
1answer
60 views

### Writing my own error and warning messages

Question: How is message handling implemented in Mathematica when applying Set to unprotected global variables such as ...
0answers
61 views

### Easy way to get the boundary of a geometric object [closed]

I am trying to define von Neumann boundary conditions for a prism. To do so I need the boundary of the geometric object. I can't seem to find an easy way to do this. I have tried to hard code a ...
1answer
52 views

### Assigning solutions to a variable [duplicate]

If I do Solve[x+1==0, x] then I get {{x -> -1}} But I want to assign the solution -1 directly before seeing the result, ...
1answer
48 views

### What does it mean when number of LaunchKernels much greater than cpu cores?

My Laptop only has two cores, In[69]:= \$ProcessorCount Out[69]= 2 And ...
2answers
148 views

### How do I animate a bar chart?

Is there any easy way to have an animated bar chart (one where the heights of the bars change with time)? I currently have the following code: ...
0answers
47 views

### Pattern type and list indexing warnings/errors

I'm new to Mathematica and am trying to implement some simple noise functions in it in hopes of eventually finding an integral for them. This is the interesting part of the code: ...
1answer
78 views

Consider: ...
2answers
69 views

### German Umlaut: how to forward through Run to the say command on OS X?

My aim is to make Mathematica speak out German words with Umlauts. I found a hint how to make use of a help function mySpeak that will forward a string to the say command and set the corresponding ...
1answer
120 views

### Finite element boundary breaking

I am trying to model a cantilever beam which can vibrate. On the left the beam is clamped. I am largely following user21 here and also the example in help. I start by doing a static beam which works ...
1answer
40 views

### Error bars in BarChart3D

Following the page on error bars in charts I wanted to make a BarChart3d with error bars, but I'm struggling with it because there is no help about the function "ChartElementData", which is used to ...

15 30 50 per page