# All Questions

127 views

### Operator syntax for Merge-like Query

Bug introduced in 10.0.0 and fixed in 10.0.2 Is it possible to take advantage of Dataset's Query operator syntax to Merge parallel queries thereby avoiding Function's that are otherwise required? ...
54 views

### How to integrate a generic integral? [on hold]

I'm trying to integrate this between $0$ and $T/4$: $$\frac{2}{T}V\int{Cos(wt)dt}$$ I use this in Mathematica: $$\frac{2}{T}(\text{Integrate}[V\int \text{Cos}[\text{wt}] \, dt,\{t,0,T/4\}])$$ But ...
49 views

### Drop all powers from multinomial [on hold]

How to automatically replace an expression like x^3 y + x y z^2 by x y + xyz in Mathematica, i.e. replace all ...
102 views

### Josephus problem

See the Josephus Problem. My code takes in two numbers; one is the number of participants, and the other is supposed to be the number of players skipped between executions. ...
74 views

### Disable alert message with internet connectivity off

I work in an environment that has mathematica's internet connectivity turned off under Help > Internet Connectivity. Recently, after installing mathematica 10.0, every time mathematica is loaded it ...
28 views

### How to use rules in simplify this expression?

D[1/(1 + Exp[-x]), x] % /. {1/(1 + Exp[-x]) -> p} Suppose I know that the rule can be applied, but Mathematics just won't do it straight away as the expression ...
24 views

### Export to PDF file and use in latex, weird behaviour from using Acrobat

I have put all files here. All pictures are Exported from Mathematica 10.0.1 X64 (win7) using Export["filename.pdf",plotobject]. I first complied the latex file, ...
67 views

### Matrix form of complex numbers [on hold]

Complex numbers have matrix form. But some 2x2 matrices while differ, represent the same complex number. To compare complex numbers one has to transform the matrices to the form \begin{pmatrix} a ...
43 views

### Ratio of variables AxesLabel is messed up when plot exported to pdf

On the vertical axis of a Plot whenever I have a ratio of variables in a string as axes label, the exporting of the plot to PDF format messes this ratio up. Minimal working example: ...
187 views

### Evaluate selection in new window or new notebook?

Sometimes when you have long code you need to check some part of this code. the way I am using currently is to selected the part that I want and then copy it to new notebook and then evaluate it ...
94 views

### Mathematica can't export $\sqrt{}$

It looks like version 10 can't export to pdf correctly with square root. For example: ...
79 views

### GraphicsGrid output is incorrect - image seems compressed [on hold]

I want to plot a large number of large data files but the output images are incorrect when I'm iterating over a GraphicsGrid with the Export command. ...
65 views

### ListPicker with conditional selection

I am reading data from a SQL Database and want to manually sellect multiple rows. ListPicker works very nicely, the only added complication is that I need to not only select the records, but also ...
60 views

### Cloud cover fraction

I need to make use of Mathematica's WeatherData functionality, the CloudCoverFraction property, specifically. However, it does ...
82 views

### How to parallelize the most outer loop only?

I have two Doloops. The outer loop iterate over the inner loop. The inner loop contains a set of step by step instructions which each next step depends on the ...
72 views

### Derivative of Vectoral NDSolve Interpolated Function / Rule Solutions,/., and Vector NDSolve [duplicate]

I need to find the instantaneous phase and instantaneous frequency for a rotating system. I am having difficulty making the math work with interpolating functions. First, here is a problem without ...
118 views

...
71 views

### Froze Mathematica and now it's buggy [on hold]

Today I was trying to generate some fractals, and I had the bright idea to generate an over 10000px by 10000px image. When I went to save it, mathematica froze up and my computer told me I was running ...
48 views

### Need to utilize FindFit with specified x variable values [on hold]

I have a function that I need to fit multiple (5) input values for, but I only have the function defined for 12 specific variable x values due to the need to ...
152 views

### How to draw multi curves in a graph with errorbars

The curves are composed by several 2*n nested lists. I want these curves be placed in a 3d way, like the xy plane is for the data, different curves are located in several parallel xy planes with ...
62 views

### RandomVariate form a Specific Distribution with Restrictions

There are a lot of questions about generating random numbers form both uni-variate and bi-variate distributions. Mathematica has a lot of built in distributions for that purpose. However, I could not ...
108 views

### DateList does not output the correct time, but Date does

I noticed a strange thing when trying the new astronomical data functions in Mathematica 10 on my Raspberry Pi. The Sunrise and ...
50 views

### Simple recursive function?

I'm new in Mathematica and need some help. I'm trying to make a recursive function but I'm not sure how to iterate through more than one item. To be more clear, take this pseudo code for example: ...
64 views

### Why is C-compiled (but not WVM-compiled) code so slow in Manipulate?

Here is a small section of code from this SE question which computes the real part of the dilogarithm (the upper limit of the sum is increased for demonstration purposes): ...
221 views

### A bug fix to mathematica 10.0.1.0

There is a bug in the Wolfram Symbolic Transfer Protocol Development in C (Windows). I described it in the next answer by myself, from which I summarize: One cannot successfully compile the ...
159 views

### Sampling phase space uniformly for a given energy

For example, for the 1D harmonic oscillator, the energy is given by: $$E = \frac{1}{2 m} p^2 + \frac{m \omega^2}{2} x^2$$ where x is position and p is the momentum. I would like to sample phase ...
45 views

I would like to suppress the argument [0, 0, 0, 0] of K in the output of ...
164 views

### Mathematica 10 ListPointPlot3D PlotTheme bug?

I am using Mathematica 10 to generate a 3D point plot of a crystal lattice structure. I wanted to set the PlotTheme to ...
142 views

### The front end encountered an error while processing a “NotebookPredictions” packet

I occasionally get the error The front end encountered an error while processing a "NotebookPredictions" packet. I cannot find any documentation for this error message online. It does not ...
54 views

### FullSimplify wont simplify to expression with lower SimplifyCount

I have been trying without success to get FullSimplify to work on some trigonometric expressions. It refuses to convert them to forms that are clearly much ...
53 views

### pattern matching and applying a function, not working as expected [duplicate]

Consider the following code G[x, y] /. a_[b__] -> Total[a @@@ Permutations[List[b]]] I expect it to give G[x, y]+G[y,x] ...
126 views

### Color Transfer from colored image into grayscale image

At first I did this where image is a grayscale image and example is a colored image ...
48 views

### Manipulate plot [duplicate]

How can one do this: ...
44 views

### Design matrix rank does not match

I'm attempting to fit a linear model and Mathematica returns the error message: "The rank of the design matrix 9 is less than the number of terms 10 in the model. The model and results based upon it ...
86 views

### How can I transfer colors from first image into second image? [duplicate]

How can I transfer colors from first image into second image, where every object from the first image should take the same object's color from first image. This images are only an example. this is ...
43 views

### Optimizing alphametrics code

First of all, thank you all in this great community. I have been reading a lot of threads about Mathematica optimization learning things like using Compile ...
50 views

### A reliable CPU timer [on hold]

I was evaluating a sample program and at the end evaluated TimeUsed. When I ran the program for the first time TimeUsed was ...
3k views

### K-means clustering

In MATLAB, there is a command kmeans() that divides an array into $k$ clusters and calculates the centroid of each cluster. Is there any command in Mathematica to ...
32 views

### How do I put single velocity and get rid of initial and final velocity? [duplicate]

I want to get rid of terminal and final velocity. I only want one velocity as a whole in the code below.How do i get that?Also could you please tell the difference of using "ParametricPlot" vs "Plot" ...
66 views

...
63 views

### Listing all cubic order derivatives of a function of 4 variables

What would be the best way to list/print all cubic order derivatives of a function of 4 variables? I was thinking about iterating Derivative[i,j,k,l][func][0,0,0,0] ...
85 views

### ReplacePart equivalent for Associations

I have a fairly complicated Association. I wish to use/create a function such as ReplacePart to operate on certain Keys within this multi-level Association. Here's ...
73 views

### How can I use the command Minimize of this trigonometric function? [duplicate]

I want to find the minimum of the function $\sin^6 x + \cos^6 x$. I tried Minimize[{Sin[x]^6 + Cos[x]^6, 0 <= x <= 2 Pi}, x] I got {Cos[2 ArcTan[1 - ...
99 views

### Why does this function inside FindRoot fail to evaluate?

Can someone help me understand why function mu found below does not execute when everything before it seems ok. ...
46 views

### How to reflect the entries of a square matrix about its anti-diagonal?

I need help with writing the mathematica code to reflect the entries of a square matrix about its anti-diagonal. I know to do it about the main diagonal using ...
33 views

### plot both parts of a two-sheeted hyperboloid [on hold]

Is it possible to plot both parts of a two-sheeted hyperboloid in one input with the following parametrization, meaning that the z-component would be plus minus ...
148 views

### Animate skips frames and hard to control speed.

I browsed similar questions related to Animate jerkiness like here, but haven't found the right options to control animation rate while also displaying all frames: ...
101 views

### Help with building matrices

I am a complete beginner in Mathematica and I have a small problem. I have this three matrices (A,B and C) and with them I have to build larger matrix M which looks like this. What would be the ...