# All Questions

0answers
9 views

### Froze Mathematica and now it's buggy

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 ...
0answers
37 views

### Need to utilize FindFit with specified x variable values

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 ...
1answer
126 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 ...
1answer
27 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 ...
1answer
56 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 ...
1answer
98 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 ...
0answers
31 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: ...
1answer
28 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): ...
1answer
184 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 ...
2answers
143 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 ...
1answer
33 views

### Formatting output for readability

I would like to suppress the argument [0, 0, 0, 0] of K in the output of ...
2answers
90 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 ...
0answers
41 views

### GraphicsGrid output is incorrect - image seems compressed

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. ...
2answers
66 views

### How to close external app from Mathematica?

Is there any analogue to SystemOpen for closing applications from Mathematica? Documentation says: SystemOpen["file"] is essentially equivalent to double-clicking the file icon in your operating ...
1answer
140 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 ...
1answer
28 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 ...
0answers
37 views

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

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] ...
2answers
114 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 ...
0answers
26 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 ...
0answers
46 views

### Manipulate plot [duplicate]

How can one do this: ...
2answers
98 views

### Unexpected result from StringReplace

The following works as expected. StringReplace["xxxyxz", "x" ~~ _ -> "ww"] "wwwwww" And so does this. ...
0answers
34 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 ...
0answers
77 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 ...
1answer
34 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 ...
0answers
37 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 ...
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 ...
0answers
30 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" ...
1answer
62 views

...
3answers
58 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] ...
3answers
84 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 ...
3answers
61 views

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

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 - ...
2answers
93 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. ...
0answers
20 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: ...
1answer
43 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 ...
0answers
31 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 ...
2answers
135 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: ...
2answers
98 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 ...
1answer
206 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: ...
0answers
1k views

### Web Browsing Automation with Mathematica

I want to build a bot to automate web browsing, this mean something like: filling forms press "submit" buttons find certain text inside pages and so on... How can I do this with Mathematica? The ...
0answers
18 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 , ...
2answers
107 views

### Function WeatherData fails

If I use WeatherData[] only some of my requests work. For example if I use WeatherData[{"Chicago", 3}] I get the correct output: ...
3answers
153 views

### Unable to compute the area of region

For a set of data: ...
3answers
211 views

### Disable templates for user defined functions with usages

It appears that fixing the template system is low on Wolfram Research's priority list. For my package, I have defined Usage info for my functions involving lots of ...
2answers
130 views

### Extracting ragged array from an image

I have a list of points, which represent positions of peaks in an image. The nature of the image itself shouldn't matter, as I already have the peak positions. As a simple example, consider the ...
0answers
35 views

### Derivation: How do I derivate this [migrated]

How do I deveriate the following expression? The problem I have is the n in d^n. This expression is part of a bigger task of mine : Show via complete induktion that is true for all n from ...
2answers
48 views

### Derivative of NDSolve Interpolated Function [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 ...
1answer
37 views

### Using If statement for more than two cases [on hold]

I want to use the If statement for three different scenario. Can someone help me out? Pls also indicate if there is a better function to do that. This is an example ...
0answers
34 views

### Help with Multivariate ProbabilityDistribution

I wish to obtain numbers from ...
0answers
18 views

### Maximization of n-variable and n-constraint in matrix form

I am trying to do some maximization using matrix algebra: very simple one is with n = 3 as the following: ...
1answer
382 views

### How to add named characters to Mathematica 10?

It appears that native support for the Klingon alphabet has been removed from version 10: \[KlingonA] Syntax::tsntxi: "\"!(\[ KlingonA])\" is incomplete; more ...

15 30 50 per page