9
votes
1answer
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? ...
-1
votes
1answer
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 ...
2
votes
0answers
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 ...
1
vote
2answers
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. ...
1
vote
1answer
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 ...
0
votes
1answer
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 ...
0
votes
0answers
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, ...
0
votes
1answer
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 ...
1
vote
1answer
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: ...
10
votes
2answers
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 ...
4
votes
1answer
94 views

Mathematica can't export $\sqrt{}$

It looks like version 10 can't export to pdf correctly with square root. For example: ...
0
votes
0answers
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. ...
3
votes
1answer
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 ...
2
votes
0answers
60 views

Cloud cover fraction

I need to make use of Mathematica's WeatherData functionality, the CloudCoverFraction property, specifically. However, it does ...
2
votes
1answer
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 ...
2
votes
2answers
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 ...
0
votes
0answers
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 ...
0
votes
0answers
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 ...
3
votes
1answer
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 ...
1
vote
1answer
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 ...
4
votes
1answer
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 ...
0
votes
0answers
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: ...
4
votes
1answer
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): ...
3
votes
1answer
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 ...
9
votes
2answers
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 ...
1
vote
1answer
45 views

Formatting output for readability

I would like to suppress the argument [0, 0, 0, 0] of K in the output of ...
6
votes
2answers
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 ...
3
votes
1answer
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 ...
2
votes
1answer
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 ...
2
votes
0answers
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] ...
2
votes
2answers
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 ...
0
votes
0answers
48 views
1
vote
0answers
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 ...
2
votes
0answers
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 ...
1
vote
1answer
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 ...
0
votes
0answers
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 ...
20
votes
4answers
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 ...
-2
votes
0answers
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" ...
0
votes
3answers
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] ...
3
votes
3answers
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 ...
1
vote
3answers
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 - ...
-3
votes
2answers
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. ...
3
votes
1answer
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 ...
0
votes
0answers
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 ...
4
votes
2answers
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: ...
3
votes
2answers
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 ...
9
votes
1answer
221 views

representation of custom deformation on a meshgrid

I am trying to represent 2D deformations on a rectangular grid. In Mathematica 10, there is a method to solve the elastic differential equations and then represent the deformation as presented here: ...
0
votes
0answers
19 views

How can I make an animation with data points imported from txt file using ListAnimate/ListPointPlot3D? [on hold]

I want to make an animation about a ball moving. I do not have an equation for the trajectory, but only spatial coordinates in three dimensions. For example, (x , y , ...

15 30 50 per page