All Questions

Filter by
Sorted by
Tagged with
1
vote
2answers
343 views

Specify the color of each residue in a protein (PDB)?

I'm importing a *.pdb file containing a single protein. Mathematica automatically produces a plot of the protein. I want to specify the color of each residue independently, in this plot. Is this ...
1
vote
0answers
33 views

More effective way to apply a function in one member of a pair in a list but print the other member? [closed]

I often find myself working with a list of pairs like {date,number} and I usually have to apply a function to the second members but I want it to print the first one. I tend to use combination of <...
1
vote
2answers
286 views

What ways are there to convert an Integer to a list of digits?

How can I convert an Integer to list of numbers? For example: 781049 ==> {7, 8, 1, 0, 4, 9} What are the possible ways of ...
1
vote
2answers
93 views

Adding an interpolated function to neural networks through ElementwiseLayer

1.Trying to add an interpolated function to neural networks. ...
1
vote
2answers
297 views

Is there a way to select the highest exponent of a polynomial expression?

I have a problem to program a particular kind of expression: Sum[1/(k n) (HS[t^k,x^k])^n,{n,1,Infinity},{k,1,Infinity}] where HS[t_,x_] is a polynomial function ...
1
vote
2answers
285 views

Why is output arranged in grid fuzzy (especially when printed)?

If I arrange output in a Grid, which is nice to summarize work, the output ends up greyed (or not bold?) compared to regular output. Here's an example: ...
1
vote
1answer
182 views

Function in Mathematica 10.1, but not in CDF Player 10.0.2

Mathematica 10.1 has a new function MinMax. It is absent in the current CDF Player 10.0.2. CDF files that use MinMax leave the function unevaluated, and thereby produce errors. One approach would be ...
1
vote
0answers
82 views

Why the data from Do-command disagree with the plot I get using them? [closed]

This is a question relevant to How to plot output data of Do-command? The Differential Equation at hand now is $\frac{d^2 f}{dx^2} + \frac{2}{x+0.1} \frac{df}{dx} = k(f)$ I give the code with the ...
1
vote
1answer
262 views

Improving strategy to solve this constrained root-finding problem

I am looking for roots of the function eqs defined below. It has $2k$ unknowns and returns a vector of $2k-1$ components. The sole purpose of the following block ...
1
vote
0answers
43 views

Fixing labels in plots with ColorFunction [duplicate]

Whenever I use ColorFunction, the labels look odd. The text is thin. Is there a way to fix this and make the labels look normal (like plot below)? Or is this just ...
1
vote
1answer
191 views

The best method of constructing a product of consecutive terms

I am new to Mathematica, I am searching for a way to create an expression with a sequence of terms such as: (x-1)/x (x-2)/x (x-3)/x (x-4)/x … (x-n)/x
1
vote
1answer
41 views

Building a nine - region cluster chart but, getting inaccurate plot-legend when empty subregions are present

This is a follow up question to the one submitted at the following: Stack exchange Link I quickly get to the subject: ...
1
vote
0answers
109 views

What is the error in this example of training a SVM model

...
1
vote
1answer
214 views

NoLinearModelFit error message

to fit my data, I use the following code. Using Manipulate on my fitting function, I can guess roughly the value for my initial fitting parameter which are in the ...
1
vote
1answer
171 views

How to stop Dynamic from returning Null?

This question grew out of this other one: DynamicModule not working when additional code is included. Let's start with this simple code: ...
1
vote
1answer
776 views
1
vote
1answer
442 views

3D Plot for Attractive and Repuslive Field Functions [closed]

I am using Mathematica to plot the total potentials (which is the sum of an attractive potential field and a repulsive potential field) - This is related the Artificial Potential Field Method in ...
1
vote
1answer
215 views

Solving nonlinear ODE with boundary conditions

I am trying to solve the below fucntions using a NDsolve, but I can't get the the converges of them at the certain initial variables.I'm using Mathematica 11.3. I appreciate any help. ...
1
vote
0answers
36 views

Conditions on FinancialData

I would like to order (3) on a Dataset or Table all the Financial Data between all markets respecting those constraints: each asset has to be shown as "Name" and "StandardName"; I would like to show "...
1
vote
2answers
79 views

How to get the literal string “{\” foo3 \“:\” bar3 \“}” from <|“foo3” -> “bar3”|> — ( Was: Problem with Run[“curl …”] … )

UPDATE: 25-Jan-17 12:02AM CET FirebaseLink package does not work on windows UPDATE: 25-Jan-17 12:02AM CET The problem could probably be reduced to: "How do I get the literal string ...
1
vote
0answers
51 views

How to define an Intermediate Variable [duplicate]

I want to find the relationship between several parameters. But I don't know how to define an Intermediate Variable. For example: I want to know the relationship between x and {y,z} which will satisfy ...
1
vote
1answer
106 views

Derivative with respect to any element of a matrix

I try to evaluate $$ \frac{\partial s}{\partial A_{ab}} $$ where $$ s = \sum_{i} \sum_{j} A_{ij}$$ The result should be 1 regardless of $a$ and $b$. But the following code gives zero. ...
1
vote
1answer
1k views

FindFit::nrlnum What am I doing wrong?

I have a model called qobs: ...
1
vote
1answer
89 views

How to modify the output result of an evaluation

For ease of notation, I have defined a function, $f$, that defines the permutation of Bosonic particles such that it has the following properties (the form of $f$ is irrelavent for this question): $\...
1
vote
1answer
532 views

Vertex sizes scaled by vertex degree?

Is there any way of scaling the sizes of the vertices of a network proportional to the vertex-degrees of the vertices in Mathematica? Thanks.
1
vote
1answer
110 views

Legend Missing In The Plot

I tried to save the plot P1 by right clicking on the plot and pressing save as. I found that the PlotLegend is not saved. Please help. ...
1
vote
2answers
115 views

Assigning to the “local” version of a symbol

Compare Manipulate[c[1] = 1; c[1], {c[1], 0, 1}] with Manipulate[Do[c[i] = 1, {i, 1}]; c[1], {c[1], 0, 1}] The first case ...
1
vote
2answers
95 views

FindRoot Accuracy

How can I get FindRoot to be more accurate? I would require a solution for r that leaves ...
1
vote
1answer
76 views

Compute the evolution of percentages from a data file

My data is stored in external .out files which contain six columns and a large number of rows. I know that I have to provide a small sample but the structure of my data is so unique, so I provide the ...
1
vote
1answer
47 views

Commutativity of Times and pattern matching

I understand that Attributes of Times make a bit non intuitive the Pattern Matching of its arguments. However I do not understand why this gives False: ...
1
vote
1answer
74 views

Constrained NDSolve

Consider n particles constrained on the surface of a unit sphere. $i^{th}$ particle experiences a force from every other $j^{th}$ of the form $$\vec{f_{ij}}=\frac{k ...
1
vote
0answers
63 views

using HighlightImage on a large image causes a display error

I get a display error when using the HighlightImage function on a large image (about 6000 x 10000 pixels). This error occurs in Mathematica versions 10.4, 11.0, and ...
1
vote
0answers
116 views

Integer sequence and RAM limits [closed]

I am trying to calculate the set of unique differences in a sequence, however the sequence grows fast and I hit the RAM limit of my PC for nthPrimeToUse = 11. For nthPrimeToUse 1 to 10 the output of ...
1
vote
1answer
122 views

Can Mathematica help me evaluate an integral over disjoint disks $I = \int_{D_1} \int_{D_2} \log|x-y| dy dx$?

I want to evaluate an integral that involves two disjoint unit disks $D_1$ and $D_2$. $D_1$ is centered at $(-2,0)$ and $D_2$ is centered at $(0,2)$. The integral I want to compute is $$I = \int_{D_1}...
1
vote
2answers
197 views

How can define a set of nested parameters

I would like to know how I to define a function with a nested set of parameters (or whatever you would like to call it). For example, how would I get the following function ...
1
vote
0answers
35 views
1
vote
2answers
204 views

Display the list of complex roots returned by Solve in their polar form [duplicate]

If I input: Solve[z^4 == 2 (Cos[2 Pi/3] + I Sin[2 Pi/3])] Mathematica returns: ...
1
vote
1answer
71 views

General question about programing

If I have the following general excel columns, how could a create a program or loop in which I can generate what I have in column A and Column B as lists. "i" represents row number so that for ...
1
vote
1answer
34 views

How to combine two lists to plot coordinate pairs with one of the list having empty cells?

If I have the following lists: How do I combine the two lists in order to plot points while ignoring the pairs where there is empty cells?. An example would be to get {0, 0.01}, {0, 0.03}, {0.127, 0},...
1
vote
1answer
1k views

Does Mathematica 11 work on macOS High Sierra (v10.13)?

In Mathematica, I see the following information $Version 11.1.0 for Mac OS X x86 (64-bit) (March 16, 2017) However, in the macOS System Information app seems ...
1
vote
2answers
437 views

Rolling Disk Animation

I am trying to create an animation in Mathematica of a rolling disk outside a disk of equal radius. The following coding is what I have tried but without the one circle staying in a fixed position I ...
1
vote
1answer
108 views

How to transform a FindRoot in a NDSolve?

some days ago I did a question about a problem with a findroot. The solution was to convert the FindRoot in a "fake" NDSolve. How can I do the same if the FindRoot has more equation ? I make here an ...
1
vote
1answer
203 views

How do I convert Mathematica's suggestions to usable code

I enter an image and in the suggestions bar under the image, one of the suggestions is "Edge detect". I click on it and a nice cell with all the options comes up. How do I get the code for all of what ...
1
vote
0answers
176 views

Wrong number of CUDA cores shown (GTX1070)

I installed the CUDA toolkit by directly obeying to the WRI instructions and use MMA 11.1.1.0 as well as the paclet version 10.5.0. While CUDA's deviceQuery sample ...
1
vote
0answers
96 views

Decapitating “explicit” and “implicit” heads

This is a follow up to this question. So far, I named "explicit" heads to those that appear explicitly in the expression. For example, f[x] has an explicit head. I ...
1
vote
1answer
3k views

How to deal with Chinese Windows path/filename? [duplicate]

I've encountered a problem with Unicode Windows file name. If I set the file name to Unicode characters on Mac OSX, it works well. But on Windows if the filename starts with a digital number or the ...
1
vote
1answer
105 views

Evaluating Residue at pole with different forms

I want to evaluate residues at the poles of the function $\frac{1}{z^{3/2}+r^{3/2}}$ fun = 1/ (z^(3/2) + r^(3/2)); where z ...
1
vote
0answers
48 views

Fast way to apply permutations in large list?

I have one Polynomial in the form of FF[x1,x2,x3,x4,x5,x6,x7,x8], where xi pick numbers from ...
1
vote
1answer
44 views

How to compare two RegionPlots?

I want to compare the regions bounded by the two RegionPlot3D. Following are the two equations of my plots along with their graphical representation: ...
1
vote
1answer
113 views

Putting eigenvalues of a matrix in a list

I have a matrix mainmatrix which must be multiplied by a (a={0.1, 0.2, 0.3,....1}). In any ...

15 30 50 per page
1
267 268
269
270 271
292