# All Questions

39 views

### Sorting in descending order of list [closed]

I have a list m = {{a, 20}, {b, 10}, {c, 50}, {d, 5}, {e, 100}} and I want to apply Sort on this in descending order on ...
44 views

### How would one make units work with a variable of unknown magnitude?

So, right now, I am working on setting various quantities up as functions of R. R will be varying later on, so right now I just have it set to the variable radius. It's breaking my dimensional ...
64 views

### How to instruct MatrixLog to work with singular matrices?

How to instruct MatrixLog to work with singular matrices by ignoring the zero eigenvalues (thus only acting on a subspace orthogonal to the matrix kernel)? I'm ...
270 views

### Good coding for a sequence of derivatives

People on this site keep telling me that good MMa practice avoids the use of loops. The code below calculates the same Table of derivatives two different ways, ...
32 views

### Aggregate chapter notebooks into a book [closed]

I would like to build a book from chapter notebooks. I prefer to do this in a separate notebook that does something like the following: reads in a list of chapter notebooks (I'll provide the list ...
51 views

### Why does Mathematica 10 autocomplete not work with \[Breve]?

Let us define the following symbol: v˘name (The Brave (˘) is typed by entering [EscapeKey]bv[EscapeKey].) In Mathematica 9, this symbol name is shown as a ...
387 views

### Geographics: Can I get a US Map silhouette without the Great Lakes?

I'd like to get a nice silhouette of the land area of the US lower 48 states using Mathematica's GeoGraphics method. I tried: ...
91 views

### Question about Mann-Whitney implementation in Mma

So, I've been doing some statistics using Mma. Typically, the Mann-Whitney U test is used to compare non-normally distributed samples, whose medians are compared if both distributions exhibit similar ...
37 views

### Work-around for Tooltip in QuantilePlot?

I can use Tooltip to show the value of each element in a ListPlot: ListPlot[Table[Tooltip[a = Random[], a], {i, 1, 100}]] but applied to QuantilePlot, ...
45 views

From the Help Browser Style["abcd xyz", FontVariations -> {"Underline" -> True}] abcd xyz The text is NOT Underlined, contrary to the online version Also ...
32 views

### Error when importing XML - XMLGetString::pserr: MalformedURLException

I am getting the following error when trying to import XML: ...
99 views

...
80 views

### How to prevent the kernel from exiting when a LibraryLink function segfaults?

I do realize that this might be controversial, but I believe I have a real need for it this time. If a process tries to access memory at a location it doesn't own, it will by default exit with a ...
176 views

### Missing old functionality

In a retro mood... Without a doubt a lot of great new functionality has been added in the latest versions of Mathematica (multiple undo anyone:-)!). Some are covered here. While searching in ...
110 views

### Behaviour of RegionDistance with Ellipse?

The data is: data = {{13, 60}, {36, 35}, {70, 29}, {106, 41}, {118, 72}, {94, 94}, {49, 99}, {24, 85}}; When I try to find a fit circle,So my method is work ...
137 views

### How do I get ConvexHullMesh to return polygons instead of triangle as surface mesh?

I would need to identify the types of regular polygons forming the surface of a convex hull of 3D points. If I e.g. take the following example of a regular polyhedron ...
418 views

So we can see that Hue is a periodic function. Its period is 1. And the specifier from documentation. Sorry for I cannot cite my local language documentation. Let ...
71 views

### Schwarz-Christoffel toolbox

Is there a toolbox for working with Schwarz-Christoffel transformations in Mathematica? More generally, is there a toolbox for visualizing conformal mappings in the complex plane? There are a lot of ...
46 views

### Specifically retrieving all “non-default” option values from the Options Inspector

Recently Mathematica broke on me and I had to reinstall. I lost all of the changes I've made in my Options Inspector over the past year and am attempting to go back and change them again by memory. ...
32 views

### Scan appears to work setting graph properties, but get error on property-read

This is a self-contained version of something a bit bigger - going for brevity. It is a bit synthetic, but there are applications I have in mind where the {{1,2}} will be replaced with real data, more ...
220 views

### Is there an existing way to add a comma between elements of a Scan?

Without thinking, I wrote (the equivalent of) this... ...
309 views

### Consistent crash printing from Mathematica 10.2.0 and 10.1.0 in OS X 10.11 El Capitan

Printing from either 10.2.0 or 10.1.0, or any other print related function (Print Preview, Save as PDF) crash my Mathematica instantly. I've tried all the usual stuff like reinstalling, deleting user ...
83 views

### fast complement with tolerance between large lists

I want a fast algorithm to get a list of elements to be kicked out of another list. But the kick out criterion is not the exact equivalence, however has a tolerance. Any two elements close enough are ...
109 views

### How do I solve for a variable inside a sum but independent of the summation index?

How would I go about solving the following for c? Solve[0 == Sum[(t[i]*m[i] - c*t[i]^2)/s[i]^2, {i, 1, n}], c, Reals] I get ...
130 views

### Efficient way to flatten or transpose-arrayreshape tensors

I have a tensor of dimensions $(2, 100, 100, 2, 100, 100)$ and I want to reshape it to a form of $(2*100*100,2*100*100)$, e.g. Flatten[A,{{1,5,6},{4,2,3}}]. If I ...
58 views

### Reducing solutions of Sin[2t] Sin[t] == Cos[t] to a simpler form [closed]

I evaluated Solve[Sin[2 t] Sin[t] == Cos[t] && 0 <= t < 2 Pi, t] And got these results. ...
87 views

### Reading an ASCII file mixing text and numerics in Mathematica

We have a sequence of large data files (LAMMPS dump files) which begin like this: ...
361 views

### How to evaluate the second argument of Cases only once

I'd like to find a fast but readable way to achieve the following: ...
83 views

### SplitBy problem with Associations

Association keys are supposed to be transparent, but in this reduced example SplitBy fails: ...
75 views

### Spacing and dimension of plots in Grid/GraphicsGrid

There is a way to align axis/picture in this kind of plot? ...
51 views

### TrigExpand-ing too far

Something simple: I'd like TrigExpand[Sin[3n-3]] to return Sin[3n]Cos[3]-Cos[3n]Sin[3] instead of ...
89 views

### How to display results of NDSolve

I am solving differential equation of second order ...
120 views

### Use Mathematica to save all citations from Google Scholar Search

How can I save all citations from a Google Scholar search? For instance, in a search for "Radon transformation", there are about 35,500 results. I want to download all citations into a string - is ...
102 views

### How can I convert a Sound created with SoundNote to a list of samples?

I have a Sound created with SoundNote, as follows: simpleSound = Sound[SoundNote["C"]] ...
84 views

### Confocal Microscopy

Is it possible to direcly import Nikon ND2 files (e.g Confocal microscope 2D or 3D stacks files)? Otherwise how can we import TIFFs of 3D stack and process it as a single "entity" so to speak? ...
58 views

### Extending Bresenham's algorithm for subpixel rendering

Original Bresenham's line drawing algorithm it limited to drawing lines between two integer pixel positions and does not allow subpixel rendering. However with my reformulation of this algorithm as a ...
41 views

### How can evaluate this function [duplicate]

Suppose this function F[c_, n_, s_] := Module[{}, Abs[s - 1 + (-1 + c)^n]] I calculate its second derivative on c ...
255 views

### Is there any function that compares distributions of two populations?

Imagine I have two populations that I want to test whether they exhibit similar shape distributions. Is there such a function that does this sort of testing already implemented? I am asking this ...
70 views

### 3D Plot of Matrix with bars, overlayed with empty bars

I am trying to plot a matrix with bars, and show what the perfect case would give in the form of non-filled bars. The bars I was able to create: ...
77 views

### Composing multiple functions [closed]

I am trying to compose three functions in the following manner: Adx[z_] = (z[x + dx, t] + z[x, t])/2 Ddt[z_] = (z[x, t + dt] - z[x, t])/dt Ddt[Adx[z]] I get the ...
128 views

### StreamPlot, ListStreamPlot scaling issue [duplicate]

The following stream plot is empty and the x-axis exceeds $[-0.1,0.1]$ significantly. StreamPlot[{y, -100000 x - y}, {x, -0.1, 0.1}, {y, -100, 100}] Using ...
52 views

### Manipulate starts to recalculate infinitely

I'm fitting data inside Manipulate and it works good model = Evaluate[H1*complex[r, k1, 1]]; fitRes = FindFit[data, model, {H1, k1}, r, Method -> "NMinimize"]; ...
39 views

### Why doesn't Simplify use my own TransformationFunction?

I define a simple TransformationFunctions via: tfTest[e_] := e /. {x^2 -> Hold[x*x]} and try to use it with ...
58 views

### Behaviour of RealDigits expected or wrong?

Is this behavior expected or a bug? RealDigits[10304.390456] {{1, 0, 3, 0, 4, 3, 9, 0, 4, 5, 5, 9, 9, 9, 9, 9}, 5} when I ...
150 views

### Find the explicit solution of the integral

I want to calculate the integral: assuming that we are familiar with the relation: The answer should be: The code that I've used is the following: ...
147 views

### Animating N points

So I'm trying to create an animation of N interacting particles in two dimensions confined in a box. Generating the data is fine and it's being stored in a text file with two columns for each ...
51 views

### SetSystemOptions is obsolete? What is next？ [closed]

When running the following code on Mathematica 10.2 SetSystemOptions[ "CompileOptions" -> "CompileReportExternal" -> True]; I received the message: ...
35 views

### Setting value of number on certain decimal points [duplicate]

How do I fix number on certain decimal point? For example number 10304,390456 should be 10304,39. I tried NumberPoints, Nest, ...